Server Error in '/' Application.

操作必须使用一个可更新的查询。

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: 操作必须使用一个可更新的查询。

Source Error:


Line 312:    {
Line 313:        this.cmd = new OleDbCommand("update [dt_Tec] set [click]=[click]+1  where [ID]=" + base.Request.QueryString["PID"], this.conn);
Line 314:        this.cmd.ExecuteNonQuery();
Line 315:    }
Line 316:

Source File: d:\web\cngenon.com\cncngenon.com\Aspx\tdetail.aspx.cs    Line: 314

Stack Trace:


[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108
   web_tdetail.updatepro() in d:\web\cngenon.com\cncngenon.com\Aspx\tdetail.aspx.cs:314
   web_tdetail.Page_Load(Object sender, EventArgs e) in d:\web\cngenon.com\cncngenon.com\Aspx\tdetail.aspx.cs:145
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42