Add the following to the linkbutton or commandbutton to create a javascript popup requesting to user to confirm the action. The page will only post back if the confirmation is true.
OnClientClick="return confirm('Are you sure you want to delete this comment?');"
Thursday, January 24, 2008
OnClientClick action confirmations using javascript
Labels:
ASP.NET,
How-To,
JavaScript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment