Easy Tutorial
❮ Prop Control Standard Clientid Control Validationsummary ❯

ASP.NET HtmlTable Control



Definition and Usage

The HtmlTable control is used to control the <table> element. In HTML, the <table> element is used to create tables.


Properties

Property Description
Align Specifies the alignment of the table.
Attributes Returns all attribute name-value pairs of the element.
BGColor Specifies the background color of the table.
Border Specifies the width of the border. Tip: Setting border="0" displays a table without a border!
BorderColor Specifies the color of the border.
CellPadding Specifies the space between the cell border and the content.
CellSpacing Specifies the space between cells.
Disabled Boolean value indicating whether the control is disabled. Default is false.
Height Specifies the height of the table.
id The unique id of the control.
InnerHtml Sets or returns the content between the start and end tags of the HTML element. Special characters are not automatically converted to HTML entities.
InnerText Sets or returns all text between the start and end tags of the HTML element. Special characters are automatically converted to HTML entities.
Rows Returns the HtmlRowCollection object representing all rows in the table.
runat Specifies that the control is a server control. Must be set to "server".
Style Sets or returns the CSS properties applied to the control.
TagName Returns the tag name of the element.
Visible Boolean value indicating whether the control is visible.
Width Specifies the width of the table.

Examples

HTMLTable

HTMLTable 2


❮ Prop Control Standard Clientid Control Validationsummary ❯