Muokkaa

Jaa


ChangePassword.UserName Property

Definition

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.

Applies to

See also