鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

鎸囧畾鐨勫弬鏁板凡瓒呭嚭鏈夋晥鍊肩殑鑼冨洿銆侟br>鍙傛暟鍚岤 PageIndex cannot be below 0.

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭澶勭悊鐨勫紓甯搞€傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.ArgumentOutOfRangeException: 鎸囧畾鐨勫弬鏁板凡瓒呭嚭鏈夋晥鍊肩殑鑼冨洿銆侟br>鍙傛暟鍚岤 PageIndex cannot be below 0.

婧愰敊璇?

鎵ц褰撳墠 Web 璇锋眰鏈熼棿鐢熸垚浜嗘湭澶勭悊鐨勫紓甯搞€傚彲浠ヤ娇鐢ㄤ笅闈㈢殑寮傚父鍫嗘爤璺熻釜淇℃伅纭畾鏈夊叧寮傚父鍘熷洜鍜屽彂鐢熶綅缃殑淇℃伅銆侟/code>

鍫嗘爤璺熻釜:


[ArgumentOutOfRangeException: 鎸囧畾鐨勫弬鏁板凡瓒呭嚭鏈夋晥鍊肩殑鑼冨洿銆
鍙傛暟鍚岤 PageIndex cannot be below 0.]
   yan.func.zhzf.PagedList`1.Initialize(IQueryable`1 source, Int32 index, Int32 pageSize, Nullable`1 totalCount) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\yan.func\zhzf\PagedList.cs:51
   yan.func.zhzf.PagedList`1..ctor(IQueryable`1 source, Int32 index, Int32 pageSize, Nullable`1 totalCount) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\yan.func\zhzf\PagedList.cs:27
   yan.func.zhzf.PagedList`1..ctor(IQueryable`1 source, Int32 index, Int32 pageSize) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\yan.func\zhzf\PagedList.cs:20
   yan.func.zhzf.PagingExtensions.ToPagedList(IQueryable`1 source, Int32 pageIndex, Int32 pageSize) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\yan.func\zhzf\PagingExtensions.cs:63
   syty.Models.ListPage..ctor(Int32 id, Int32 page) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\syty\Models\ListPage.cs:25
   syty.Controllers.HomeController.news(Nullable`1 id, Nullable`1 page) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\xmyy\syty\Controllers\HomeController.cs:56
   lambda_method(ExecutionScope , ControllerBase , Object[] ) +115
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +251
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +31
   System.Web.Mvc.<>c__DisplayClassd.b__a() +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +534
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +312
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +694
   System.Web.Mvc.Controller.ExecuteCore() +136
   System.Web.Mvc.<>c__DisplayClass8.b__4() +51
   System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.b__7(IAsyncResult _) +15
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +77
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +39
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +454
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:2.0.50727.8813; ASP.NET 鐗堟湰:2.0.50727.8951
Baidu
sogou