HtmlTable, HtmlTableRow, HtmlTableCell - creating thead, tbody and tfoot

前端 未结 4 715
孤独总比滥情好
孤独总比滥情好 2020-12-17 00:24

I\'m working with c# ASP .Net, HtmlTable, HtmlTableRow, HtmlTableCell to create a table.

for example... i need to have some cells to be wrapped by

4条回答
  •  失恋的感觉
    2020-12-17 01:08

    Doesn't look good, I'm afraid. This from http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmltable%28VS.80%29.aspx

    Note

    A complex table model is not supported. You cannot have an HtmlTable control with nested < caption >, < col >, < colgroup >, < tbody >, < thead >, or < tfoot > elements. These elements are removed without warning and do not appear in the output HTML. An exception will be thrown if you attempt to programmatically add these table model elements to the Control.Controls collection of the HtmlTable control.

    Old school html is the way, then.

提交回复
热议问题