Thursday, 29 January 2015

Confirmation before deleting in ASP.NET


To ask for confirmation before deleting in ASP.NET when a user clicks a button use the following code:

<asp:Button ID="btnDel" runat="server"  OnClientClick="return confirm('Are you sure to delete?')" Text="Delete"  />


No comments:

Post a Comment