GridView自带的删除按纽。如何弹出消息框?
。
------解决方案--------------------重载里面的删除方法
------解决方案-------------------- <asp:TemplateField ShowHeader= "False ">
<ItemTemplate>
<asp:LinkButton ID= "LinkButton1 " OnClientClick= "javascript:return confirm( '你确认要删除吗? ') " runat= "server " CausesValidation= "False " CommandName= "Delete "
Text= "删除 "> </asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>