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 43:                <ItemTemplate>   
Line 44:                 <a href="Creditlist.aspx?Classname=<%#Eval("ClassName") %>" >         	
Line 45:             	  <%#dbcss(Eval("ClassName").ToString())%> 
Line 46:                     <li class=" fl">&nbsp;·&nbsp;</li> 
Line 47:                     

Source File: d:\web\dhsz\CreditList.aspx    Line: 45

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2443454
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   kindeditor.CreditList.newstitle() in G:\迅雷下载\kindeditorDemo\kindeditor\CreditList.aspx.cs:96
   kindeditor.CreditList.dbcss(String val) in G:\迅雷下载\kindeditorDemo\kindeditor\CreditList.aspx.cs:102
   ASP.creditlist_aspx.__DataBind__control7(Object sender, EventArgs e) in d:\web\dhsz\CreditList.aspx:45
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +304
   System.Web.UI.Control.DataBindChildren() +11414663
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +185
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +643
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +167
   kindeditor.CreditList.RepeaterleftBindData() in G:\迅雷下载\kindeditorDemo\kindeditor\CreditList.aspx.cs:34
   kindeditor.CreditList.Page_Load(Object sender, EventArgs e) in G:\迅雷下载\kindeditorDemo\kindeditor\CreditList.aspx.cs:22
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048


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