怎么动态生成一个相同的表格?
如题,代码如下:
private void createTable()
{
Table table;
TableRow row;
TableCell cell;
table = new Table();
row = new TableRow();
cell = new TableCell();
table.ID = ClickNumber.ToString();
TextBox txt = new TextBox();
txt.ID = ClickNumber.ToString();
cell.Controls.Add(txt);
row.Cells.Add(cell);
table.Rows.Add(row);
//Div1.Controls.Add(table);
//ClickNumber++;
}
大概就是生成一个表格到Div1中,表格的ID是根据clicknumber增加变化的,请问要怎么样才能让table在Div中依次画出来,而不是覆盖上一个呢?