Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




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>

Share this article   |    Print    |    Article read by 3681 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles:
Related Interview Questions: