DataGrid保存数据时出现错误解决办法.
来源:互联网 发布:c语言打开文件源代码 编辑:程序博客网 时间:2024/05/10 14:25
解决办法:
前台设定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: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror 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: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror 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: {
Line 94: //取得编辑行的关键字段的值
Line 95: int empID=(int)DataGrid1.DataKeys[e.Item.ItemIndex];
Line 96:
Line 97: //取得文本框中输入的内容
Source File: e:/aspxproject/news/datagridedit.aspx.cs Line: 95
- DataGrid保存数据时出现错误解决办法.
- DataGrid改变分页数出现错误解决办法.
- java导出excel大量数据出现错误时解决办法
- layui table请求数据时出现415错误解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- javaWeb将数据保存到数据库中文出现问号,解决办法。
- 保存DataGrid数据到数据库
- 保存DataGrid数据到数据库
- Windows2000 在保存IP安全数据时出现拒绝访问错误80070005的解决方法
- 使用LINQ保存关联数据时,出现错误FOREIGN KEY 约束问题的原因
- IOS Core Data之数据保存---顺序出现错误
- 销售订单创建保存时,出现错误
- java文件保存时出现错误提示
- MyEclipse保存出现错误
- jquery easyui datagrid保存时处理数据合法性
- JBOSS4.0+Oracle8i 连接池配置
- 穷人的浪漫
- linux下如何浏览.iso光盘镜像文件?
- DataGrid的小技巧1
- C++代码优化方法总结
- DataGrid保存数据时出现错误解决办法.
- 测试
- 新社区的生态链图
- 公司工作流平台-开源拉!!
- 最近发文章,老是被告知有敏感词汇
- 迁移
- Java异常处理之陋习展播
- Soft-ICE实例起步
- 轉載:使用“自动化”功能将数据从 ADO 记录集传输到 Excel