This example shows different ways to confirm the submission of the page to the server when using the RadButton control:
- The first button uses the browser's confirm dialog. This is the most straightforward approach.
- The second one uses RadConfirm for the confirmation dialog. This provides uniform experience across all browsers.
- The third one uses a RadWindow that lets the developer customize the look of the dialog as desired.
All approaches rely on cancelling the OnClientClicking event of the RadButton. When RadConfirm is used, the
button's click() method is used to initiate the postback if the user confirms the action. With the custom RadWindow dialog
the client-side API of both controls is used to handle the events of all needed controls.