Latest web development tutorials

ASP.NET Table Caption property

Table Controls Table Controls

Definition and Usage

Caption property is used to get or set the display text for the title of Table controls.

grammar

<asp:Table Caption="string" runat="server">
Some Content
</asp:Table>
属性 描述
string 显示为表格标题的文本。


Examples

The following example sets the Caption of Table Controls:

<form runat="server">
<asp:Table id="tab1" runat="server"
Caption="Table 实例">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

The demonstration >>

Table Controls Table Controls