ASP.NET Columns Property
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 number, which specifies the width of the text box in terms of character count. |
Example
The following example sets the width of the TextBox control:
<form runat="server"> <asp:TextBox id="tb1" runat="server" Columns="25" /> </form>
Example
- Set Width for TextBox Control