I want to delete a some data in a page and want to warn to user (show a messagebox with YES/NO) and if user click on YES delete data
is it possible to implememt MessageBox in ASP?if yes how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
with
confirmit’s as simple as:As for ASP.NET, you can do this on server-side:
Or, on markup:
Edit:
Using a
GridView, you can do something like this on the server-side code:And your markup could be done similarly to the following. As for the template column, it’s easy to create a command column through visual studio and then convert it into a template column, so you can actually have an ID for the delete link button (or a button) and find it through
e.Row.FindControlas shown above.