How do I pop up a delete confirm for a delete button in an asp:GridView?
Share
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.
If you have a delete button for each row in a GridView, here is what I think is the best (and definitely easiest) way to have it put up an alert asking for confirmation. Here is the full aspx code (there is no code-behind needed):
A couple of notes:
GridView delete functionality.
title of that row. What you use here will depend on the
column/property names of your data.
that is what we have rows of. You need to replace with what your
data is called.
text – but have not done that yet.