ChangePassword.UserName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Web site user name for which to change the password.
public:
virtual property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
public virtual string UserName { get; set; }
member this.UserName : string with get, set
Public Overridable Property UserName As String
Property Value
The user name for which to change the password.
Remarks
The UserName property gets the Web site user name for which to change the password. You can also use the UserName property just to get the user name from within the ChangePassword control, without changing the password. Additionally, the UserName property can be used from within an email message that has been created to send email from the ChangePassword control by using the string "<%UserName%>" in the body of the email message.
To allow the user to type in a user name, set the DisplayUserName property to true
. If a user is already authenticated, they don't need to enter a user name.