为删除按钮添加客户端确认事件

Posted on 2007-04-18 17:23  ant-boss  阅读(187)  评论(0)    收藏  举报
<asp:LinkButton ID="LinkButton3" 
         runat="server" 
         CausesValidation="False" 
         CommandName="Delete"
         OnClientClick="return window.confirm('确定要删除该条记录吗?')" 
         Text="删除">
</asp:LinkButton>