Server Error in '/' Application.

Index -10 is either negative or above rows count.

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: Index -10 is either negative or above rows count.

Source Error:


Line 75:                 {
Line 76:                     Repeater1.DataSource = Pager1.DataSource;
Line 77:                     Repeater1.DataBind();
Line 78:                 }
Line 79:             

Source File: d:\webs\hx\wwwroot\news.aspx.cs    Line: 77

Stack Trace:


[IndexOutOfRangeException: Index -10 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +4983153
   System.Data.DataView.System.Collections.IList.get_Item(Int32 recordIndex) +12
   System.Web.UI.WebControls.EnumeratorOnIList.get_Current() +30
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +395
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
   System.Web.UI.WebControls.Repeater.DataBind() +76
   news.Page_Load(Object sender, EventArgs e) in d:\webs\hx\wwwroot\news.aspx.cs:77
   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.1