ChangePassword control
Collapse the table of content
Expand the table of content

ChangePassword control

The ChangePassword control allows users to change their password. The user must first supply the original password and then create and confirm the new password. If the original password is correct, the user password is changed to the new password. The control also includes support for sending an e-mail message about the new password.

The ChangePassword control works with authenticated and non-authenticated users. If a user has not been authenticated, the control prompts the user for a login name. If the user is authenticated, the control populates the text box with the user's login name.

  • Drag the ChangePassword control from the Toolbox panel to your page.

The ChangePassword control includes two template views that are displayed to the user. The first is the ChangePasswordTemplate, which displays the user interface used to gather the data required to change the user password. The second template is the SuccessTemplate, which defines the user interface that is displayed after a user password has been successfully changed.

  1. In Design view, right-click the ChangePassword control, and then click Show Common Control Tasks.


    You can also click the ChangePassword control in Design view, click the arrow Cc294841.fa82fc93-da47-44dc-bf71-77ddd4b69c38(en-us,Expression.30).gif in the upper-right corner to show the Common ChangePassword Tasks menu. Click the arrow again to hide the menu.

  2. On the Common ChangePassword Tasks menu, choose Change Password or Success in the Views dropdown. The template changes to the view you choose.

For each template view, you can apply formatting.

  1. In Design view, right-click the ChangePassword control, and then click Show Common Control Tasks.

  2. On the Common ChangePassword Tasks menu, click AutoFormat.

  3. In the AutoFormat dialog box, select one of the schemes in the Select a scheme list. The effect of the scheme on your ChangePassword control is displayed in the Preview area.

  4. Click OK to apply the formatting scheme and close the dialog, or Apply to apply the formatting scheme without closing the dialog.

To set other properties that determine the ChangePassword control's appearance and behavior, including the text that is displayed in various states of the control, use the Tag Properties panel.

For a full description of all ChangePassword control properties, see ChangePassword Members in the MSDN library.

Community Additions

© 2016 Microsoft