ASP.NET Caption Property
Definition and Usage
The Caption property is used to set or return the text displayed as the title for the Table control.
Syntax
<asp:Table Caption="string" runat="server"> Some Content </asp:Table>
Property | Description |
---|---|
string | Text displayed as the table title. |
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>
Example
- Set the Caption Property for Table Control