Add a confirmation popup on button click
have you ever faced situation where you need to get the confirmation from user before execute the function. This is alert type which get the response from the user. It may be called on OnCLick or OnCLientClick.
Usually situation comes in the Gridview, Datalist or Datagrid where before deleting an record, Developer need to confirm before deleting.
example:
<a href="" href="" onClick="Javascript: return confirm('Are you sure to delete this record.') " id="MyID" runat="Server">Delete</a>
http://
http://
Contributed by:
Rohit kakria
I am software developer, moderator of xpode.com
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=314
Click here to go on website
|