日期:2014-05-17 浏览次数:20431 次
<table id="tab" runat="server"></table>
for (int i = 0; i < 10; i++)
{
HtmlTableRow row = new HtmlTableRow();
HtmlTableCell cell = new HtmlTableCell();
cell.InnerText = "数据" + i.ToString();
row.Cells.Add(cell);
tab.Rows.Add(row);
}