ASP.NET Web Server
Using Visual Studio
ASP.NET Image Effects
DB Design tips
Design Secure Apps
Build Secure Apps
2.4 How to use the ChangePassword control
ASP.NET 2.0’s new “ChangePassword” control gives you the ability to automate the process of a user wanting to change their password. You can configure the new “ChangePassword” control to accepts the username and the password the user wishes to change. You can also configure it such that the user cannot enter his username, but should be logged into the application as a user to change the password.The new “ChangePassword” control also can be configured such that after changing the password, the new password can be e-mailed back to the user.
The “ChangePassword” control in its simplest form will look like the following:
<asp:ChangePassword ID="ChangePassword1" runat="server">
The “ChangePassword” control can send a new password e-mail to the user using the “<MailDefinition>” child element. The following is a sample code of how this will look like:
<asp:ChangePassword id="ChangePassword1" runat="Server" >
In ASP.NET 2.0, you have the ability to customize your “ChangePassword” control by using any of the optional attributes listed below.
Attributes for the “ChangePassword” control
The following is the code for a customized “ChangePassword” control.
<asp:ChangePassword id="ChangePassword1" runat="Server"
Table of Contents
Chapter 1 - What is ASP.NET User Authentication