System.Web.UI.WebControls.Login.UserName Property

Gets the user name entered by the user.

Syntax

[System.ComponentModel.DefaultValue("")]
public virtual string UserName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Login.UserName property contains the user name entered by the user. System.Web.UI.WebControls.Login control properties represented by text boxes, such as Login.UserName and Login.Password, 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.

Requirements

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