The Change Password Panel allows you to modify a member's password if your provider has been configured to EnablePasswordRetrieval and also if the particular members' password is not hashed.
Since many Asp.Net web applications may be using default provider settings, it is likely that the provider's passwordFormat is set to hashed and that EnablePasswordReset is set to False.
The Advanced Option
The Membership Manager Control includes a more advanced feature for changing a member's password but it involves completely resetting all of the member's credentials to new values. This feature, available on the Reset Password Panel, may be accessed by clicking the "advanced" hyperlink on the Change Password Panel.
Since the Membership Manager Control depends on the configuration of your Membership Provider, certain exceptions may be anticipated if you have not properly configured the Asp.Net SqlMembershipProvider. The following configuration topics explain the various messages you might receive while using the Reset Password Panel:
Index was outside the bounds of the array
Provider not configured for Password Retrieval
Customizing the view (design time)
The Heading Text and new password prompt may be modified by changing the ChangePasswordTitle
and NewPasswordPrompt properties in the Visual Studio 2005 Properties pane.
Similarly, the Confirmation text box prompt and the text that links to the advanced
(Reset Password) view may be set with the ConfirmPasswordPrompt and ResetPasswordLinkText
While simple label and style changes might be adequate for your needs, you may also wish to take advantage of the Convert to Template option which exposes the view's constituent web controls for formatting and editing.
As illustrated, the Tasks panel includes an option to select the desired view then Convert to Template changes it to a templated panel.
Just like the Asp.Net Login Controls, templated views allow you to change the layout and content of the panel. You actually have a lot of flexibility when doing so, however you must not delete or change the name of the active controls such as the text box, the OK button or the Cancel Button.
The following is an example of a panel that has been converted to a template then customized with additional controls:
As you can see, the modified control may contain additional controls and varied formatting.
Control properties do not apply to templated views
When you convert a view to a templated view, the constituent controls are created using the current properties which have been set (styles, text, etc.) The next time you refresh the page, you may notice that properties related to the now-templated view are no longer listed in the Visual Studio 2005 Properties pane. This is by design and it is assumed that you will be setting properties on the controls themselves.
If you want to discard your templated changes, just bring up the tasks menu and click the Reset option as illustrated below. Caution: Reset will immediately discard any changes you have made to your custom view template. Of course, nothing is permanent until you save the file.