如何在删除gridview的一行数据前,弹出一个提示
private void InitializeComponent() { this.GridView1.DataBound += new System.Web.UI.WebControls.GridViewRowEventHandler(this.GridView_RowDataBound); }
<asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" Font-Underline="true" CommandName="Del" CommandArgument='<%#Eval("UID") %>' OnClientClick='javascript:return confirm("确定要删除嘛?");'></asp:LinkButton>
[解决办法]
LZ贴全点代码