Posted By

blackf0rk on 03/16/09


Tagged

javascript confirm return alert confirmation


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zreedeecom


JavaScript Confirmation Alert before Deleting a Record


 / 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):

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

Report this snippet  

You need to login to post a comment.