Server Error in '/' Application.

There is no row at position 0.

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.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 1025:            string sanji_id = flag_str_new_arr[n];
Line 1026:            DataTable dt_sanji = new New_Sql().selectTableTwoTiaojian("", "calistlistName", "categorylistlist", "id", "=", sanji_id, "id asc");
Line 1027:            dr["calistlistName"] = dt_sanji.Rows[0]["calistlistName"].ToString();
Line 1028:            DataTable dt_sanji_newsCount = new New_Sql().selectTableFiveTiaojian("", "id", "category_news", 
Line 1029:                "calistId", "=",sanji_id, 

Source File: c:\huanqiu0906\substation\province\index.aspx.cs    Line: 1027

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2244730
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   index.dt_chanye(String str, String dengji_filed_Value, String dengji_filed, String UsersValue, String UsersBj) in c:\huanqiu0906\substation\province\index.aspx.cs:1027
   index.noLogin() in c:\huanqiu0906\substation\province\index.aspx.cs:1419
   index.Page_Load(Object sender, EventArgs e) in c:\huanqiu0906\substation\province\index.aspx.cs:360
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


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