Gets or sets the text to display after sending a password successfully.
Assembly: System.Web (in System.Web.dll)
The property is displayed in the Success view when a password has been successfully sent to a user.
The style settings in the SuccessTextStyle property define the appearance of the property.
When you use a template assigned to the SuccessTemplate property, the property has no effect.
The default text for the property is localized based on the server's locale setting.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
The following code example sets the property to "Your password has been sent to the e-mail address in our files."
<%@ page language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>ASP.NET Example</title> </head> <body> <form id="form1" runat="server"> <asp:passwordrecovery id="PasswordRecovery1" runat="server" successtext="Your password has been sent to the e-mail address in our files."> <successtextstyle font-names="Arial" forecolor="Green"></successtextstyle> </asp:passwordrecovery> </form> </body> </html>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2