ASP.NET CaptionProperties


Table 控件Table Control

Definition and Usage

The Caption property is used to get or set the text displayed as the caption for the Table control.

Syntax

<asp:Table Caption="string" runat="server">
Some Content
</asp:Table>
 
Property Description
string The text displayed as the table caption.


Example

The following example sets the Caption for the Table control:

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

Show example »

Table 控件Table Control Other Extensions