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 46:         Repeater2.DataSource = pages;
Line 47:         Repeater2.DataBind();
Line 48:         LB_Navgetion.Text = huahaocms.com.CORE.Method.CreateButtonForRepeater(Request.Url.ToString(), PageID, pages.PageCount);
Line 49:     }
Line 50: }

Source File: e:\HXDT\product\list\Default.aspx.cs    Line: 48

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   huahaocms.com.CORE.Method.CreateButtonForRepeater(String RequestURL, Int32 NowPageID, Int32 PageCount) +2183
   product_list_Default.Bind() in e:\HXDT\product\list\Default.aspx.cs:48
   product_list_Default.Page_Load(Object sender, EventArgs e) in e:\HXDT\product\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