asp.net.ph

Skip Navigation Links

PasswordRecovery Control Syntax

ASP.NET Syntax   ASP.NET Syntax for Web Controls


Provides user interface elements that enable a user to recover or reset a lost password and receive it via e-mail.

Declarative Syntax

For information on the individual members of this class, see PasswordRecovery in the class library.

Remarks

The PasswordRecovery control assists users who have forgotten their password. It enables a user to request an e-mail message containing either a new password or the password that is already associated with their user name.

NOTE: The PasswordRecovery control uses Internet e-mail services to send recovered or new passwords to users. There are inherent security risks with sending passwords via e-mail. You should determine whether these security risks are acceptable.

Syntax Example

The following example demonstrates how to declaratively set a PasswordRecovery control on a Web form. .

<asp:passwordrecovery id="pw" runat="server"
   helppagetext = "Need help?" helppageurl = "passwordhelp.aspx" 
   onuserlookuperror = "handleLookupError"
   onload = "handleLoad">

   <titletextstyle font-bold
      forecolor = "White" backcolor = "#6B696B" />

   <successtemplate>
      <table>
      <tr>
         <td>Your password has been sent to you.</td>
      </tr>
      </table>
   </successtemplate>

</asp:passwordrecovery>
See Also

PasswordRecovery Class   PasswordRecovery Web Server Control



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note