Server Error in '/' Application.

Index was outside the bounds of the array.

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 was outside the bounds of the array.

Source Error:


Line 47:         Repeater2.DataSource = pages;
Line 48:         Repeater2.DataBind();
Line 49:         LB_Navgetion.Text = huahaocms.com.CORE.Method.CreateButtonForRepeater(Request.Url.ToString(), PageID, pages.PageCount);
Line 50:     }
Line 51: }

Source File: e:\HXDT\solution\list\Default.aspx.cs    Line: 49

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   huahaocms.com.CORE.Method.CreateButtonForRepeater(String RequestURL, Int32 NowPageID, Int32 PageCount) +2183
   solution_list_Default.Bind() in e:\HXDT\solution\list\Default.aspx.cs:49
   solution_list_Default.Page_Load(Object sender, EventArgs e) in e:\HXDT\solution\list\Default.aspx.cs:30
   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.EventHandler.Invoke(Object sender, EventArgs e) +0
   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.1040
Baidu
sogou