System.Web.UI.HtmlControls.HtmlInputText.Value Property

Gets or sets the contents of the text box.

Syntax

public override string Value { set; get; }

Value

a string

Remarks

Use the HtmlInputText.Value property to programmatically determine the text entered by the user into the text box. You can also use this property to provide default text for the text box.

Note:

If you specify a value for a password type System.Web.UI.HtmlControls.HtmlInputText control, that value is not displayed in the text box.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0