Return to Snippet

Revision: 12477
at March 16, 2009 12:50 by blackf0rk


Initial Code
SomeButton.Attributes.Add("OnClick", "return(confirm('Are you sure you want to delete this record?'));")

Initial URL

                                

Initial Description
If you want to have a JavaScript confirmation alert to popup before executing the codebehind (e.g. asking the user if they really want to delete a record):

Initial Title
JavaScript Confirmation Alert before Deleting a Record

Initial Tags
javascript

Initial Language
VB.NET