System.Web.UI.HtmlControls Namespace HtmlInputText Class
Sets or retrieves the contents of the HtmlInputText control.
Inline |
<input type= [ text | password ] value = strValue ... > |
Script |
HtmlInputText.Value [ = strValue ] |
strValue |
String specifying the content of the text box. |
The property is read/write with no default value.
Use this property to specify or determine the value associated with the HtmlInputText control.
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">
HtmlInputText Members