Problem with deleting a row on a Gridview

couly

New member
Joined
Mar 26, 2010
Messages
4
Programming Experience
10+
Hi,
I have a problem where I need to delete a row. This works fine with a Delete command button, but I also have a javascript confirm in there. When I prompt the user to delete the row and press cancel, the selectedindexchnaged event still fires and I don't want it to. Is there a way to detect the 'Cancel' part ?
I have this on the OnClientClick part of the button:

return confirm("Are you sure you want to delete this case?");

thanks for any help,
Derek.
 
Back
Top