• GridView“gvWorkList”激发了未处理的事件“RowDeleting”。


    GridView“gvWorkList”激发了未处理的事件“RowDeleting”。

    说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.Web.HttpException: GridView“gvWorkList”激发了未处理的事件“RowDeleting”。

    源错误:

    执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。


    堆栈跟踪:

    [HttpException (0x80004005): GridView“gvWorkList”激发了未处理的事件“RowDeleting”。]
       System.Web.UI.WebControls.GridView.OnRowDeleting(GridViewDeleteEventArgs e) +365
       System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +980
       System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1533
       System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +186
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
       System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +136
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +155
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +221
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +38
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +37
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +289
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4221
    

     aspx页面:

    <asp:LinkButton ID="libtn_delete" runat="server" Text="删除"  CommandName="delete" CommandArgument='<%# Eval("id")%>'></asp:LinkButton>

    将CommandName="delete"  中delete改为其他的名字,只要不是delete就行。对应的后台cs代码中也修改过来即可。

  • 相关阅读:
    Bootstrap3 代码-代码块
    DB2 911错误的解释
    Bootstrap3 代码-用户输入
    Bootstrap3 代码-内联代码
    Bootstrap3 排版-列表
    Bootstrap3 排版-引用
    Bootstrap3 排版-地址
    Bootstrap3 排版-缩略语
    Bootstrap3 排版-改变大小写
    Bootstrap3 排版-对齐
  • 原文地址:https://www.cnblogs.com/fanshaomin/p/3844903.html
Copyright © 2020-2023  润新知