HtmlInputText::Value Property

 

Gets or sets the contents of the text box.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

public:
property String^ Value {
	virtual String^ get() override;
	virtual void set(String^ value) override;
}

Property Value

Type: System::String^

The text contained in the text box. The default is an empty string ("").

Use the 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.

System_CAPS_noteNote

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

The following code example demonstrates how to use the Value property to programmatically determine the text entered by the user in the text box.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: