Documentation for this section has not yet been entered.
The PasswordRecovery.UserName property contains the user name entered by the user, or string.Empty if the user has not entered a name. The PasswordRecovery.UserName property is used only in the UserName view.
The PasswordRecovery.UserName property is saved in the System.Web.UI.WebControls.PasswordRecovery control's control state to preserve the values between round trips to the server even when view state is turned off for the page. System.Web.UI.WebControls.PasswordRecovery control properties represented by text boxes, such as PasswordRecovery.UserName, are accessible during all phases of the page life cycle. The control will pick up any changes made by the end user by means of the TextBox.TextChanged event triggered by the textboxes.
The style settings in the PasswordRecovery.TextBoxStyle property define the appearance of the text in the PasswordRecovery.UserName property.
When you assign a template to the PasswordRecovery.UserName property to display the UserName view, the PasswordRecovery.UserName property is assigned the value entered in a required System.Web.UI.WebControls.TextBox control with the System.Web.UI.Control.ID property set to "UserName".
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.