ASP.NET Rows Property
Definition and Usage
The Rows property is used to set or return the height of the TextBox control.
This property is used only when TextMode="Multiline".
Syntax
<asp:TextBox runat="server" Rows="num" TextMode="MultiLine" />
Property | Description |
---|---|
num | Number, this value specifies the height of the text box in terms of lines. |
Example
The following example sets the height of the TextBox control:
<form runat="server"> <asp:TextBox id="tb1" runat="server" TextMode="MultiLine" Rows="4" /> </form>
Example
- Set the Height of TextBox Control