Use the ChangePassword.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 System.Web.UI.WebControls.ChangePassword control. The Change Password button completes the last step in the System.Web.UI.WebControls.ChangePassword control.
To assign change-password functionality to any System.Web.UI.WebControls.Button control contained in the System.Web.UI.WebControls.ChangePassword control, set the Button.CommandName property of the button to the string that is contained in the ChangePassword.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 ChangePassword.ChangedPassword event.