例如:[ArgumentOutOfRangeException: startIndex 不能大于字符串长度。
参数名: startIndex]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7490931
System.String.Substring(Int32 startIndex) +17
WebApplication1._Default.Page_Load(Object sender, EventArgs e) in F:\test\WebApplication1\Default.aspx.cs:19
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.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 希望哪位大哥给个详细的解释,或者给个链接,我没找着相关资料。
1 回答

墨色风雨
TA贡献1853条经验 获得超6个赞
问题应该是出在 Page_Load 函数中。
我判断你在这个函数中使用了 str.Substring(xxx) ,而这个 xxx 大于了 str.Length-1
- 1 回答
- 0 关注
- 626 浏览
添加回答
举报
0/150
提交
取消