ASP.NET AJAX Control Toolkit Demos v20.1.0.0

ConfirmButton Sample
Ajax Control Toolkit
ConfirmButton Demonstration
Click Me



ConfirmButton Description
ConfirmButton is an extender that catches button clicks (or click on an instance of a type that is derived from Button) and displays a message to a user. If the user clicks OK, the button or link functions normally. If the user does not click OK, the click event is trapped and the button does not perform its default submit behavior.
ConfirmButton Properties
Properties
  • ConfirmOnFormSubmit - True if the confirm dialog should run for form submission (i.e., after validators are all satisfied). The default is false
  • ConfirmText - Confirmation text to display.
  • DisplayModalPopupID - Specifies an ID of a pre-configured ModalPopupExtender for use instead of window.confirm.
  • OnClientCancel - A client script to be executed when the Cancel button is clicked in the confirm dialog box.
  • PostBackScript - Specifies the script to run to initiate a postback.

Methods
  • RegisterDisplayModalPopup() - Registers the target of DisplayModalPopupID for use with ConfirmButton.
Copyright © 2012-2024 CodePlex Foundation. All Rights Reserved.