private void get_DATA()
{
    string sqlstr = " select * from 人员信息 where 显示否=1  ";
DataSet ds=KingOper.DataBaseOper.GetDataSet(sqlstr);
foreach(DataRow dr in ds.Tables[0].Rows)
{
string n= "<br>";
Label label=new Label();
label.Text=n;
Label label2=new Label();
label2.Text=n; HtmlTable tb=new HtmlTable();
tb.Border=2;
this.Panel1.Controls.Add(tb);
HtmlTableRow row=new HtmlTableRow();
tb.Controls.Add(row);
HtmlTableCell cell=new HtmlTableCell();
Label li=new Label();
li.Text="姓名:";
cell.Controls.Add(li);
row.Controls.Add(cell);

HtmlTableCell cell2=new HtmlTableCell();
TextBox to=new TextBox();
to.Text=dr["姓名"].ToString();
cell2.Controls.Add(to);
row.Controls.Add(cell2);
HtmlTableCell cell3=new HtmlTableCell();
Label li2=new Label();
li2.Text="性别:";
cell3.Controls.Add(li2);
row.Controls.Add(cell3);
HtmlTableCell cell4=new HtmlTableCell();
TextBox to2=new TextBox();
to2.Text=dr["性别"].ToString();
cell4.Controls.Add(to2);
row.Controls.Add(cell4);

HtmlTableRow row2=new HtmlTableRow();
tb.Controls.Add(row2);
HtmlTableCell cell5=new HtmlTableCell();
Label li3=new Label();
li3.Text="出生年月:";
cell5.Controls.Add(li3);
row2.Controls.Add(cell5);
row2.Controls.Add(cell5);
HtmlTableCell cell6=new HtmlTableCell();
TextBox to3=new TextBox();
to3.ID="csny";
to3.Text=KingOper.StringOper.getYMDFromFullDate(dr["出生年月"].ToString());
to3.Attributes.Add("onfocus","xcalendar(this,'0')");
cell6.Controls.Add(to3);
row2.Controls.Add(cell6);

HtmlTableCell cell7=new HtmlTableCell();
Label li4=new Label();
li4.Text="住址:";
cell7.Controls.Add(li4);
row2.Controls.Add(cell7);
HtmlTableCell cell8=new HtmlTableCell();
TextBox to4=new TextBox();
to4.Text=dr["住址"].ToString();
cell8.Controls.Add(to4);
row2.Controls.Add(cell8);

HtmlTableRow row3=new HtmlTableRow();
tb.Controls.Add(row3);
HtmlTableCell cell9=new HtmlTableCell();
Label li5=new Label();
li5.Text="籍贯:";
cell9.Controls.Add(li5);
row3.Controls.Add(cell9);
HtmlTableCell cell10=new HtmlTableCell();
TextBox to5=new TextBox();
to5.Text=dr["籍贯"].ToString();
cell10.Controls.Add(to5);
row3.Controls.Add(cell10);

HtmlTableRow row4=new HtmlTableRow();
tb.Controls.Add(row4);
HtmlTableCell cell11=new HtmlTableCell();
Label li6=new Label();
li6.Text="个人介绍:";
cell11.Controls.Add(li6);
row4.Controls.Add(cell11);
HtmlTableCell cell12=new HtmlTableCell();
TextBox to6=new TextBox();
to6.Text=dr["自我介绍"].ToString();
cell12.Controls.Add(to6);
row4.Controls.Add(cell12);

}
}这是动态生成表格 的代码 这样生成的表是没孔隙才 先想在表格间有空行怎么做 就是表格间是要换行的