浏览:5852008-03-31 14:44   来自棠棠dotNet      :

访问:http://space.cnblogs.com/question/c0

出错:

Server Error in '/' Application.

Index and length must refer to a location within the string.
Parameter name: length

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.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length

Source Error:

Line 24: 
Line 25: 			int CateID = Convert.ToInt32(_cid);
Line 26: 			int BigCateID = Convert.ToInt32(CateID.ToString().Substring(0,2));
Line 27: 			_bigcateid = BigCateID.ToString();
Line 28:

 

楼主
  3个月前   dudu      :
你在哪看到这个链接的?
回复  1楼 回到顶楼 
  3个月前   天生俪姿      :
这个不知道是怎么回事。我按这个链接试了一下
http://space.cnblogs.com/question/a01 出现404 错误
http://space.cnblogs.com/question/c0 输入这个就出现上面的错误页
不知道是判断了什么东西?
回复  2楼 回到顶楼 
  2个月前   dudu      :
已经进行了改进。
回复  3楼 回到顶楼 
  2个月前   天生俪姿      :
能说说是咋回事吗?多谢
回复  4楼 回到顶楼 
  2个月前   dudu      :
@天生俪姿
上面的代码就可以看出来。
回复  5楼 回到顶楼 
  2个月前   天生俪姿      :
@dudu
哦~!是这个值转化的时候没有判断吧。
回复  6楼 回到顶楼 

你还不是小组成员,加入小组以后才能发布新主题!
1 21102