I have a radButton and in the OnClick method in code behind I am using it to update a bunch of SQL rows.
When a user clicks the button I need to be able to display a pop-up message asking to Confirm Yes/No and if the user clicks No, the OnClick method with the SQL update is no longer fired, only if the user clicks Yes it should fire. Basically if no then stop the postback.
How can this be done?
5 Answers, 1 is accepted
I have tried this http://www.telerik.com/forums/confirmation-message-when-click-rad-button and it does not work, I see the pop up for a second and then it continues with the postback/running the OnClick method without taking any input from the user.
Here is the button code:
Here is an example how to achieve your goal:
Yes, you can replace the prompt with confirm method: