“/”应用程序中的服务器错误。

StartIndex 不能小于 0。
参数名: startIndex

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentOutOfRangeException: StartIndex 不能小于 0。
参数名: startIndex

源错误:


行 33:             }
行 34: 
行 35:             result = result.Remove(result.Length - 1);
行 36:         }
行 37: 

源文件: d:\webnew\m.chinazjy.com\App_Code\Common.cs    行: 35

堆栈跟踪:


[ArgumentOutOfRangeException: StartIndex 不能小于 0。
参数名: startIndex]
   System.String.Remove(Int32 startIndex) +14414523
   Common.GetIDsFromTable(DataTable dt, Int32 pageSize, Int32 pageIndex) in d:\webnew\m.chinazjy.com\App_Code\Common.cs:35
   UserControl_ListBinder.BindMe(Int32 pageSize, String sqlFormat, Repeater repeater) in d:\webnew\m.chinazjy.com\UserControl\ListBinder.ascx.cs:198
   service_page.Page_Load(Object sender, EventArgs e) in d:\webnew\m.chinazjy.com\service.aspx.cs:101
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4654.0