System.Web.UI.HtmlControls Namespace HtmlInputText Class
Sets or retrieves the width of the text box.
Inline |
<input type= [ text | password ] size = intSize ... > |
Script |
HtmlInputText.Size [ = intSize ] |
intSize |
Integer specifying the width, in characters, of the text box. |
The property is read/write with a default value of 20.
Use the Size property to specify or determine the width of the textbox, in characters.
The below snippet shows how to declaratively set the Size property of an HtmlInputText control at design time.
<input type=text id="myTextBox" size=30 runat="server">
HtmlInputText Members MaxLength