I want to notify the user before they delete something from the database. How can incorproate an meesage box is ASP.net to confirm if the want to proceed with the deletion.
Printable View
I want to notify the user before they delete something from the database. How can incorproate an meesage box is ASP.net to confirm if the want to proceed with the deletion.
Try this:
btnDelete.Attributes.Add("onclick", "if(confirm('Are you sure to delete?')){}else{return false}")