System.Web.UI.WebControls.ChangePassword.DisplayUserName Property

Gets or sets a value indicating whether the System.Web.UI.WebControls.ChangePassword control should display the ChangePassword.UserName control and label.

Syntax

[System.ComponentModel.DefaultValue(false)]
public virtual bool DisplayUserName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In order to change their password, users must be authenticated by the membership provider. To allow users who are not logged on to change their password, or to be authenticated by the membership provider with a different user account and then change the password for that account, the System.Web.UI.WebControls.ChangePassword control can display a System.Web.UI.WebControls.TextBox control to accept the user name.

You must set the ChangePassword.DisplayUserName property to true if the System.Web.UI.WebControls.ChangePassword control will be displayed to users who are not logged on; otherwise, the user will not be able to specify a user name.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0