TUTORIAL后端与 Web 服务FETCHED

ASP.NET Caption 属性

ASP.NET Caption 属性 Table 控件 定义和用法 Caption 属性用于为 Table 控件获取或设置显示为标题的文本。 语法 <asp:Table Caption='string' runat='server'>Some Content </asp:Table> 属性 描述 string ..

更新于 2026/7/16

教程详情页默认 noindex。

ASP.NET Caption 属性


Table 控件 Table 控件

定义和用法

Caption 属性用于为 Table 控件获取或设置显示为标题的文本。

语法

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


实例

下面的实例为 Table 控件设置了 Caption:

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

演示实例 »

Table 控件 Table 控件