HtmlInputControl::Value Property

 

Gets or sets the value associated with the HtmlInputControl control.

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

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

Property Value

Type: System::String^

The value associated with the HtmlInputControl.

Use this property to specify or determine the value associated with the HtmlInputControl control. The Value property is equivalent to the value attribute of HTML elements.

The following code example demonstrates how to use the Value property to determine the text that the user entered into some text boxes.

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

.NET Framework
Available since 1.1
Return to top
Show: