'/' 應用程式中發生伺服器錯誤。

位置 0 沒有資料列。

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.IndexOutOfRangeException: 位置 0 沒有資料列。

原始程式錯誤:


行 73:         product_no = no;
行 74: 
行 75:         DataRow dr = ds.Tables[0].Rows[0];
行 76: 
行 77:         labProductName.Text = dr["product_name"].ToString();        

原始程式檔: d:\vhosts\chinchun.com\httpdocs\HotDetail.aspx.cs    行: 75

堆疊追蹤:


[IndexOutOfRangeException: 位置 0 沒有資料列。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1547874
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   HotDetail.BindData(Int32 no) in d:\vhosts\chinchun.com\httpdocs\HotDetail.aspx.cs:75
   HotDetail.Page_Load(Object sender, EventArgs e) in d:\vhosts\chinchun.com\httpdocs\HotDetail.aspx.cs:49
   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) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.8745; ASP.NET 版本:2.0.50727.8745