Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Table Control

ASP.NET Table Control


Web Server Controls Web Server Controls


Definition and Usage

The Table control works with the TableCell and TableRow controls to create tables.


property

property Description .NET
BackImageUrl The URL of the table's background image. 1.0
Caption The caption of the table. 2.0
CaptionAlign The alignment of the caption text. 2.0
CellPadding The spacing between the cell border and its content. 1.0
CellSpacing The cell spacing. 1.0
GridLines The gridline format of the table 1.0
HorizontalAlign The horizontal alignment of the table on the page. 1.0
Rows The collection of rows in the table. 1.0
runat Specifies that the control is a server control. Must be set to "server". 1.0

Web Control Standard Properties

AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width

For a complete description, please visit Web Control Standard Properties。

Web Control Standard Properties

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID, Visible

For a complete description, please visit Web Control Standard Properties。


Example

Table
In this example, we declare two Table controls in the .aspx file.

Table 2
In this example, we declare one Table control, three TableRow controls, and two TableCell controls in the .aspx file.


Web Server Controls Web Server Controls