Kontrol Tabel ASP.NET
Definisi dan Penggunaan
tabel kontrol dengan kontrol TableCell dan TableRow Kontrol untuk menciptakan bentuk.
milik
属性 | 描述 | .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 Properti
AccessKey, Attributes, BackColor, BorderColor,
BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming,
ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width
Untuk keterangan lengkap, kunjungi Web Control Standard Atribut .
Kontrol Standard Properti
AppRelativeTemplateSourceDirectory, BindingContainer,
ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer,
Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID,
Visible
Untuk keterangan lengkap, buka Kontrol Atribut Standard .
contoh
tabel
Dalam contoh ini, kita mendeklarasikan dua kontrol Tabel di file .aspx.
tabel 2
Dalam contoh ini, kita mendeklarasikan kontrol Tabel di file .aspx, tiga kontrol TableRow, dan dua kontrol TableCell.
DNS server web