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

位置 0 沒有資料列。

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

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

原始程式錯誤:


行 11:         jcx.qstr = "select * from article where artid='" & Request("artid") & "'"
行 12:         tblQuestion = jcx.OpenTable2("Conn_idn_news", "article")
行 13:         If tblQuestion.Rows(0).Item("imgpath") <> "" Then
行 14:             image = "<img width='300' src='../productimage_s/" & Mid(tblQuestion.Rows(0).Item("artid"), 1, 4) & "/" & tblQuestion.Rows(0).Item("imgpath") & "' border='0'>"
行 15:         End If

原始程式檔: D:\web_net\currect\content.aspx.vb    行: 13

堆疊追蹤:


[IndexOutOfRangeException: 位置 0 沒有資料列。]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2441533
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   currect_content.Page_PreLoad(Object sender, EventArgs e) in D:\web_net\currect\content.aspx.vb:13
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreLoad(EventArgs e) +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3361


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3930.0