ASP.NET Table control
Definition and Usage
Table control with the TableCell control and TableRow The controls for creating forms.
Attributes
属性 | 描述 | .NET |
---|---|---|
BackImageUrl | 表格的背景图像的 URL。 | 1.0 |
Caption | 表格的标题。 | 2.0 |
CaptionAlign | 标题文本的对齐方式。 | 2.0 |
CellPadding | 单元格边框与内容的间距。 | 1.0 |
CellSpacing | 单元格间距。 | 1.0 |
GridLines | 表格的网格线格式 | 1.0 |
HorizontalAlign | 表格在页面中的水平对齐方式。 | 1.0 |
Rows | 表格中的行集合。 | 1.0 |
runat | 规定该控件是服务器控件。必须设置为 "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 full description, visit the Web Control Standard Attributes .
Control Standard Properties
AppRelativeTemplateSourceDirectory, BindingContainer,
ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer,
Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID,
Visible
For a full description, go to Control Standard Attributes .
Examples
Table
In this example, we declare two Table controls in an .aspx file.
Table 2
In this example, we declare a Table control in an .aspx file, the three TableRow controls, and two TableCell controls.
Web server control