解决办法:
前台设定DataGrid
DataKeyField="ID"
错误提示:
Server Error in '/News' Application.
Index was out of range. Must be non-negative and less than the size of the collection.
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 was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source Error:
Source File: e:/aspxproject/news/datagridedit.aspx.cs Line: 95
前台设定DataGrid
DataKeyField="ID"
错误提示:
Server Error in '/News' Application.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
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 was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source Error:
Line 93: {
|
Source File: e:/aspxproject/news/datagridedit.aspx.cs Line: 95
博客指出在 '/News' 应用程序中出现服务器错误,具体为索引越界,要求索引必须为非负且小于集合大小,参数名为 index。
462

被折叠的 条评论
为什么被折叠?



