Latest web development tutorials

ASP.NET TextBox Rows property

TextBox controls TextBox controls

Definition and Usage

Rows property sets or returns the height of the TextBox control.

The property is used only in TextMode = "Multiline" when.

grammar

<asp:TextBox runat="server" Rows="num" TextMode="MultiLine" />
属性 描述
num 数值,该值规定文本框的高度,以行数计。


Examples

The following example sets the height of the TextBox control:

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

The demonstration >>

TextBox controls TextBox controls