/ Published in: VB.NET

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):
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SomeButton.Attributes.Add("OnClick", "return(confirm('Are you sure you want to delete this record?'));")
Comments
