ChangePassword.CancelButtonCommandName Field

Definition

Represents the CommandName value of the Cancel button. This field is read-only.

C#
public static readonly string CancelButtonCommandName;

Field Value

Remarks

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.

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also