Jump to content

A Pop-Up dialog box to confirm a Deletion


LJnel

Recommended Posts

:) hey therei want to be able to delete a user from a table , getting the user's info from the database, by just using a checkbox, if the checkbox is clicked and the user clicks the confirmation button, i want to display a pop-up just the user "Are you sure?" thats all..i cant find any code, can somebody help me if they know the code..thanks
Link to comment
Share on other sites

use this

deleteButton.Attributes.Add("onclick","if(checkbox is checked){return confirm('Are you sure?','')}else{return false}");

If they click okay it will continue an dfire your delete button on click function and if they click cancel nothing will happen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...