ASP.Net AJAX ConfirmButton Control using C#

AJAX ConfirmButton extender control provides the functionality similar to the JavaScript window.confirm method. In JavaScript confirm box works at client side and allows you to execute the JavaScript client end code only and submits the form only if user clicks OK button. Whereas AJAX ConfirmButton extender control allows you to execute server end C# code also when user clicks on OK button and performs the action without refreshing the ASP.Net web page.

Properties of AJAX ConfirmButton Control

1. TargetControlID

2. ConfirmText

3. ConfirmOnFormSubmit

4. onClientCancel

You can learn the use of above properties from the tutorial of AJAX ConfirmButton control by following the link given at the bottom of this sample.

Try the sample below to understand the functionality of AJAX ConfirmButton control. Following sample will execute the server end C# code when you will click on OK button of ConfirmButton extender popup message box:

Click this button to open AJAX Confirm box: