GridView“GridView1”激发了未处理的事件“RowDeleting”
来源:互联网 发布:京东 研发 知乎 编辑:程序博客网 时间:2024/05/18 00:54
<1>GridView“GridView1”激发了未处理的事件“RowDeleting”
异常详细信息: System.Web.HttpException: GridView“GridView1”激发了未处理的事件“RowDeleting”。
原因分析: 在GridView1的事件中,即删除的确认对话框,因此,当你单击【删除】按钮时,已经执行了RowCommand事件,即执
行了删除操作,然后再引发了RowDeleting了事件,但是代码中没有定义该事件,所以出错
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("F_ID") %>' OnClientClick="return confirm('您确定要删除吗?')">[删除]</asp:LinkButton></td>
</ItemTemplate>
</asp:TemplateField>
解决方案: 1)你可以把【删除】按钮按钮的CommandName属性的值(原值为“delete”)修改为不是"delete"就可以了,譬如修改为“del”;
2)或者你主动添加一个RowDeleting事件,该事件中的代码为空。 <2>SqlException ,超时时间已到。在操作完成之前超时时间已过或服务器未响应。 异常信息: 异常类型: SqlException 异常消息: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。获得数据连接超时。原因分析: <1>数据库正在进行备份操作。 <2>数据库设置的超时时间太短
<3>程序中获得的Connection没有及时释放
<4> 程序中的Transaction没有Commit或者RallBack
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/f_c_sh/archive/2008/06/13/2543911.aspx
- GridView“GridView1”激发了未处理的事件“RowDeleting”
- GridView“GridView1”激发了未处理的事件“RowDeleting"(转)
- GridView“GridView1”激发了未处理的事件“RowDeleting”
- GridView“GridView1”激发了未处理的事件“RowDeleting”
- GridView“GridView1”激发了未处理的事件“RowDeleting”
- GridView激发了未处理的事件RowDeleting
- gridview激发了未处理的事件RowDeleting
- gridview激发了未处理的事件RowDeleting
- GridView“GridView1”激发了未处理的事件“RowDeleting” 的出现原因及解决方法
- GridView“gvShow”激发了未处理的事件“RowDeleting”解决办法
- GridView“gvShow”激发了未处理的事件“RowDeleting”解决办法
- GridView“gv_res”激发了未处理的事件“RowDeleting”。
- GridView“GridView1”激发了未处理的事件“PageIndexChanging” 之解决方案
- GridView“GridView1”激发了未处理的事件“PageIndexChanging” 之解决方案
- 解决GridView“GridView1”激发了未处理的事件“PageIndexChanging”处理
- GridView“GridView1”激发了未处理的事件“PageIndexChanging” 之解决方案
- GridView“GridView1”激发了未处理的事件“PageIndexChanging” 之解决方案
- GridView“GridView1”激发了未处理的事件“PageIndexChanging”
- Struts2 文件上传 之 文件类型 allowedTypes
- 如何给一个MySQL主服务器增加新的从服务器
- log4j自定义输出多个文件
- ERP
- 三角函数简单控制弹性往复运动
- GridView“GridView1”激发了未处理的事件“RowDeleting”
- 关于在Eclipse(myeclipse)中加载Nutch中遇到的问题
- POOM - 通讯录
- 《架构之美》-看着不美
- FCKeditor 自动xhml格式化的问题
- c#中快速排序的方法(转载)
- 敏捷中,尴尬的pm
- Margin 属性的一些边界情况说明
- 陆首群:评自由软件与开源软件的概念纷争