Pages

Saturday, May 31, 2008

User Confirmation before Deleting Items in ASP.Net 2.0

Attach the OnClientClick event to the button as below

asp:button id="btnapprove" tabindex="65" runat="server" cssclass="buttonstyle" text="Update Status" onclientclick="return confirm('Are you sure you want to delete this Contact Record?');"

No comments: