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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph