ASP.NET TextBox ColumnsProperty
TextBox Control
Definition and Usage
The Columns property is used to set or return the width of the TextBox control.
Syntax
<asp:TextBox Columns="num" runat="server" />
| Property | Description |
|---|---|
| num | A value that specifies the width of the text box, in characters. |
Example
The following example sets the width of the TextBox control:
<form runat="server">
<asp:TextBox id="tb1" runat="server" Columns="50" />
</form>
<asp:TextBox id="tb1" runat="server" Columns="50" />
</form>
Demo Example »
TextBox Control Other Extensions