ASP.NET TextBox RowsProperty


TextBox 控件TextBox Control

Definition and Usage

The Rows property is used to set or return the height of the TextBox control.

This property is only used when TextMode="Multiline".

Syntax

<asp:TextBox runat="server" Rows="num" TextMode="MultiLine" />
 
Property Description
num A value that specifies the height of the text box, measured in rows.


Example

The following example sets the height of the TextBox control:

<form runat="server">
<asp:TextBox id="tb1" runat="server"
TextMode="MultiLine" Rows="5" />
</form>

Demo Example »

TextBox 控件TextBox Control Other Extensions