ChangePassword.CancelButtonCommandName Field
.NET Framework 3.0
Represents the CommandName value of the Cancel button. This field is read-only.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
ChangePassword Members
System.Web.UI.WebControls Namespace
ContinueButtonCommandName
ChangePasswordButtonCommandName
ChangePasswordTemplate
SuccessTemplate
CancelButtonClick
Templated Server Control and Designer Sample
How to: Locate Child Controls by ID in an ASP.NET Web Page
Assembly: System.Web (in system.web.dll)
Use the CancelButtonCommandName field to represent the CommandName value of the Cancel button. This is useful when configuring any button to mimic the functionality of the Cancel button of the ChangePassword control.
To assign cancel functionality to any Button control contained in the ChangePassword control, set the CommandName property of the button to the string that is contained in the CancelButtonCommandName field.
The Cancel button can appear on the ChangePassword template or the Success template. Clicking the Cancel button on the Success template will not undo the password change; it will clear the text boxes. To add custom functionality to the Cancel button, create an event handler for the CancelButtonClick event.
Reference
ChangePassword ClassChangePassword Members
System.Web.UI.WebControls Namespace
ContinueButtonCommandName
ChangePasswordButtonCommandName
ChangePasswordTemplate
SuccessTemplate
CancelButtonClick
Other Resources
How to: Create Templated ASP.NET User ControlsTemplated Server Control and Designer Sample
How to: Locate Child Controls by ID in an ASP.NET Web Page
Community Additions
ADD
Show: