【发布时间】:2015-12-05 13:35:36
【问题描述】:
我一直在寻找相当长的时间来使用 C# 通过代码隐藏创建下表。我很难将<tr> 添加到<thead> 和<tr> 到<tbody>。表格应该是这样的:
<table id="mytable" border="1" cellpadding="10" cellspacing="0" >
<caption>myCaption</caption>
<thead>
<tr>
<td> </td>
<th scope="col">myHeader1</th>
<th scope="col">myHeader2</th>
<th scope="col">myHeader3</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>3</td>
<td>1</td>
</tr>
</tbody>
</table>
感谢任何帮助。
【问题讨论】:
-
嗨,戴夫,它是 MVC...
-
你的模型怎么样?
-
@RVP 仅供参考检查stackoverflow.com/questions/10704802/…
标签: c# asp.net asp.net-mvc html-table