ASP.NET Table 控件

定義和用法
Table 控件與 TableCell 控件和 TableRow 控件配合,用於創建表格。
屬性
屬性 | 描述 | .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 控件標準屬性
AccessKey, Attributes, BackColor, BorderColor,
BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming,
ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width
如需完整描述,請訪問 Web 控件標準屬性。
控件標準屬性
AppRelativeTemplateSourceDirectory, BindingContainer,
ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer,
Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID,
Visible
如需完整描述,請訪問 控件標準屬性。
實例
Table
在本例中,我們在 .aspx 檔中聲明了兩個 Table 控件。
Table 2
在本例中,我們在 .aspx 檔中聲明了一個 Table 控件,三個 TableRow 控件,和兩個 TableCell 控件。
