由于其 Required 属性设置为真(True),字段 'followforum.lid' 不能包含 Null 值。在此字段中输入一个数值。 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: 由于其 Required 属性设置为真(True),字段 'followforum.lid' 不能包含 Null 值。在此字段中输入一个数值。Source Error: 
Line 37:         objAdapter.InsertCommand=objBuilder.GetInsertCommand();
Line 38:     
Line 39:         objAdapter.Update(objDataSet,"followforum");  这一行报错
Line 40:     
Line 41:         strSQL="SELECT * FROM followforum";
 
在线等,可以交流!!!!

解决方案 »

  1.   

    这个解决了又了新的
    Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: 
    Line 33:     
    Line 34:     
    Line 35:     string ID=Request["lid"].ToString();
    Line 36: