asp.net.ph

HtmlInputText.Value Property

System.Web.UI.HtmlControls Namespace   HtmlInputText Class


Sets or retrieves the contents of the HtmlInputText control.

Syntax


Inline <input type= [ text | password ] value = strValue ... >
Script HtmlInputText.Value [ = strValue ]

Property Value


strValue String specifying the content of the text box.

The property is read/write with no default value.

Remarks

Use this property to specify or determine the value associated with the HtmlInputText control.

Example

The below code shows how you can declaratively set the initial value of a text box.

<input type=text id="username" runat="server" value="Enter user name here">
See Also

HtmlInputText Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note