asp.net.ph

HtmlTextArea.Rows Property

System.Web.UI.HtmlControls Namespace   HtmlTextArea Class


Sets or retrieves the display height of the text area.

Syntax


Inline <textarea rows = intRows ... >
Script HtmlTextArea.Rows [ = intRows ]

Property Value


intRows Integer specifying the display height, in rows, of the text area.

The property is read/write with a default value of 2.

Remarks

Use the Rows property to specify or determine the height, in rows, of the HtmlTextArea control.

This property specifies the number of visible text lines. Users may enter more lines than this, and browsers typically provide some means to scroll through the contents of the control when the contents extend beyond the visible area.

To specify the display width of the control, set the Cols property.

Example

The below code snippet shows how to declaratively set the Rows property of an HtmltextArea control at design time.

<textarea cols=40 rows=5 runat="server"
   value="This is an HtmltextArea that is 5 rows high and 40 characters wide." />

Which would render as follows:


See Also

HtmlTextArea Members   Cols Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph