Thursday, January 24, 2008

OnClientClick action confirmations using javascript

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?');"

No comments: