ConfirmButton Demonstration
ConfirmButton is a simple extender that catches clicks on a button-typed class and displays a message to the user.
If the "OK" button is clicked, the button or link functions normally.
If not, the click is trapped and the button will not perform its default submit behavior.
This is useful for delete links or anything else that requires confirmation from the user.
The control above is initialized with this code:
<ajaxToolkit:ConfirmButtonExtender ID="cbe" runat="server"
TargetControlID="LinkButton1"
ConfirmText="Are you sure you want to click this?" />
- TargetControlID - The ID of the button or link for this extender to operate on
- ConfirmText - The text to show when you want to confirm the click. (Note: HTML entities can be used here (ex: " " for new-line))