求助,请高手来看看是怎么回事
“/”应用程序中的服务器错误。--------------------------------------------------------------------------------
语句已终止。无法将 NULL 值插入列 'USER_ID',表 '@TB';该列不允许空值。INSERT 失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.OleDb.OleDbException: 语句已终止。无法将 NULL 值插入列 'USER_ID',表 '@TB';该列不允许空值。INSERT 失败。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[OleDbException (0x80040e2f): 语句已终止。
无法将 NULL 值插入列 'USER_ID',表 '@TB';该列不允许空值。INSERT 失败。]
AjaxForm.Data.DbAccess.GetDataSet(String commandText, CommandType commandType, OleDbParameter[] parameters, Int32 StartIndex, Int32 PageSize, String tablename, Boolean isNeedReCalRecordCount, OleDbParameter[]& outParameters, Int32& recordCount) +336
AjaxForm.Data.DbAccess.GetDataSet(String commandText, CommandType commandType, OleDbParameter[] parameters, Int32 StartIndex, Int32 PageSize, String tablename, OleDbParameter[]& outParameters, Int32& recordCount) +31
AjaxForm.Data.DbAccess.GetDataSet(String commandText, CommandType commandType, OleDbParameter[] parameters, Int32 StartIndex, Int32 PageSize, String tablename, OleDbParameter[]& outParameters) +36
AjaxForm.Data.DbAccess.GetDataSet(String commandText, CommandType commandType, OleDbParameter[] parameters) +146
AjaxForm.WebControls.oDataset..ctor(oPageManager pm, String id, String commandText, CommandType commandType, OleDbParameter[] parameters, String connectionStr, Int32 pageSize, XmlElement element) +918
AjaxForm.WebControls.oPageManager.y0SOAtXWCR(String , String , CommandType , OleDbParameter[] , String , Int32 ) +1780
AjaxForm.WebControls.oPageManager.createDataset(String id, OleDbParameter[] parameters) +20
Macrowing.DMS.Document.Document.oxxPUtYxY4(Object , EventArgs ) +1802
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
Macrowing.AjaxForm.BasePage.OnLoad(EventArgs e) +7770
System.Web.UI.Control.LoadRecursive() +35
--------------------编程问答-------------------- 调试,看一下你插入的值,你一定在不能为空的列插入了空值。 --------------------编程问答--------------------
大哥没分就算了,,,好歹你也发个代码啊...
补充:.NET技术 , ASP.NET