ASP.NET TableControl
Web Server Control
Definition and Usage
The Table control works with the TableCell control and the TableRow control to create tables.
Properties
| Properties | Description | .NET |
|---|---|---|
| BackImageUrl | The URL of the background image of the table. | 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 spacing between cells. | 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 visitWeb Control Standard Properties。
Control Standard Properties
AppRelativeTemplateSourceDirectory, BindingContainer,
ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer,
Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID,
Visible
For a complete description, please visitControl Standard Properties。
Example
Table
In this example, we declare two Table controls in an .aspx file.
Table 2
In this example, we declare one Table control, three TableRow controls, and two TableCell controls in an .aspx file.
Web Server Control Other Extensions