ASP.NET 教程教程
ASP.NET TableRow TableSection 属性
ASP.NET TableRow TableSection 属性
ASP.NET TableRow TableSection 属性
定义和用法
TableSection 属性用于设置或返回 Table 控件中的 TableRow 对象的位置。
使用 TableSection 属性来获取或设置在 Table 控件中放置 TableRow 对象的位置。
语法
<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
Some Content
</asp:TableRow>
属性 | 描述 |
---|---|
section | 规定该行所属的表格部分。 可能的值:
|
实例
下面的实例设置了 TableRow 控件的 TableSection 属性:
<form runat="server">
<asp:table id="Table1" runat="server" GridLines="Both">
<asp:TableRow TableSection="TableHeader">
<asp:TableCell>Header</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
<asp:table id="Table1" runat="server" GridLines="Both">
<asp:TableRow TableSection="TableHeader">
<asp:TableCell>Header</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
演示实例 »
ASP.NET TableRow TableSection 属性 |
---|
ASP.NET 教程
ASP.NET 是微软公司提出的一个使用 HTML、CSS、JavaScript 和服务器脚本创建网页和网站的开发框架。ASP.NET 支持三种不同的开发模式:单页面模式、MVC 模式、事件驱动模式。