ConfirmButton Reference

Modified on 2010/05/04 16:42 by Stephen Walther — Categorized as: Uncategorized

ConfirmButtonExtender Server Reference

ConfirmButton extender class definition

ConfirmButtonExtender Server Properties

NameDescription
ConfirmOnFormSubmit True iff the confirm dialog should run for form submission (i.e., after validators are all satisfied)
ConfirmText Text to display in the confirm dialog
DisplayModalPopupID Specifies the ID of a pre-configured ModalPopupExtender to use in place of window.confirm
OnClientCancel Gets or sets the client-side script that executes when the cancel button is clicked on the confirm dialog.
PostBackScript Specifies the script to run to initiate a postback

ConfirmButtonExtender Server Methods

NameDescription
OnLoad(System.EventArgs) OnLoad override
RegisterDisplayModalPopup Registers the target of DisplayModalPopupID for use with ConfirmButton

ConfirmButtonBehavior Client Reference

The ConfirmButtonBehavior extends buttons by providing a confirmation dialog when clicked

ConfirmButtonBehavior Client Properties

NameDescription
ConfirmOnFormSubmitTrue iff the confirm dialog should run for form submission (i.e., after validators are all satisfied)
ConfirmTextThe text to show when you want to confirm the click. (Note: HTML entities can be used here (ex: " " for new-line))
displayModalPopupIDID of a ModalPopupBehavior to be used instead of the default window.confirm dialog
OnClientCancelThe client-side script that executes when the cancel button is clicked on the confirm dialog.
postBackScriptScript to run to initiate a postback

ConfirmButtonBehavior Client Methods

NameDescription
dispose Dispose the behavior
initialize Initialize the behavior
raiseHidden Raise the hidden event
raiseShowing Raise the showing event
WebForm_OnSubmit Wraps ASP.NET's WebForm_OnSubmit in order to display the confirm dialog prior to submission

ConfirmButtonBehavior Client Events

NameDescription
hidden Add an event handler for the hidden event
showing Add an event handler for the showing event