Thursday, November 21, 2013

Show conformation Message Before Delete data using JavaScript .



Solution :

Just Add OnClientClick= "javascript:return confirm('Are you sure to delete this Data?');" in Button Control.
Copy and  paste  the Code in your Page.

      <asp:Button Text="Delete" runat="server" OnClick = "Submit" OnClientClick= "javascript:return confirm('Are you sure to delete this Data?');"/>

No comments:

Post a Comment