Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


ChangePassword.UserName Property

Definition

Gets or sets the Web site user name for which to change the password.

C#
public virtual string UserName { get; set; }

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

Προϊόν Εκδόσεις
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also