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

Source File: d:\英国正版365中文官网\news\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) +3179
   news_Default.Bind() in d:\英国正版365中文官网\news\Default.aspx.cs:48
   news_Default.Page_Load(Object sender, EventArgs e) in d:\英国正版365中文官网\news\Default.aspx.cs:31
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   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
Baidu
sogou