Export (0) Print
Expand All

ChangePassword.ChangePasswordButtonCommandName Field

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Shared ReadOnly ChangePasswordButtonCommandName As String

Use the ChangePasswordButtonCommandName field to represent the CommandName value of the Change Password button. This is useful when configuring any button to mimic the functionality of the Change Password button of the ChangePassword control. The Change Password button completes the last step in the ChangePassword control.

To assign change-password 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 ChangePasswordButtonCommandName field.

The Change Password button can appear on the ChangePassword template or the Success template. In both cases, clicking the Change Password button calls the membership provider to change the password. To add custom functionality to the Change Password button, create an event handler for the ChangedPassword event.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft