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 314:    {
Line 315:        this.cmd = new OleDbCommand("update [dt_Article] set [click]=[click]+1  where [ID]=" + base.Request.QueryString["PID"], this.conn);
Line 316:        this.cmd.ExecuteNonQuery();
Line 317:    }
Line 318:

Source File: d:\web\cngenon.com\cncngenon.com\Aspx\infodetail.aspx.cs    Line: 316

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_infodetail.updatepro() in d:\web\cngenon.com\cncngenon.com\Aspx\infodetail.aspx.cs:316
   web_infodetail.Page_Load(Object sender, EventArgs e) in d:\web\cngenon.com\cncngenon.com\Aspx\infodetail.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