Server Error in '/' Application.

No data exists for the row/column.

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.InvalidOperationException: No data exists for the row/column.

Source Error:


Line 193:        OleDbDataReader rdrcnt = this.cmd.ExecuteReader();
Line 194:        rdrcnt.Read();
Line 195:        ptitle = rdrcnt["title"].ToString();
Line 196:        pcontent = rdrcnt["content"].ToString();
Line 197:        pzhaiyao = rdrcnt["zhaiyao"].ToString();

Source File: d:\1\842250\html\prodetail.aspx.cs    Line: 195

Stack Trace:


[InvalidOperationException: No data exists for the row/column.]
   System.Data.OleDb.OleDbDataReader.DoValueCheck(Int32 ordinal) +1120803
   System.Data.OleDb.OleDbDataReader.GetValue(Int32 ordinal) +12
   System.Data.OleDb.OleDbDataReader.get_Item(String name) +27
   web_prodetail.infobind() in d:\1\842250\html\prodetail.aspx.cs:195
   web_prodetail.Page_Load(Object sender, EventArgs e) in d:\1\842250\html\prodetail.aspx.cs:120
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031