日期:2014-05-18 浏览次数:20775 次
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贴全点代码