解决办法:
前台设定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