Jun
12
ASP.Net – Confirmation Dialog
hermes birkin . It is important to ask the user to confirm whether they want to delete an item incase the delete button was pressed by accident.This is very easy to do in ASP.Net with JavaScript.
Just use the code below:
.aspx
function confirmDelete(){return confirm("Are you sure?");}
C# Code Behind
btnDelete.Attributes.Add("onclick","return confirmDelete()");
It’s that simple. Robert M Pardes . knights limo . Now you have a fancy new confirmation dialog.
RSS ?

comments on this post
I admire the time and effort you put into your blog. I wish I had the same drive