table小问题一个。
protected System.Web.UI.WebControls.Table tab_HotMer;
tab_HotMer = new Table();
......
for(int i=0;i<ThisConn.Ds.Tables[0].Rows.Count;i++)
{
TableRow tr = new TableRow();
tr.BackColor = ColorTranslator.FromHtml("#c0c0c0");
for(int j=0;j<2;j++)
{
TableCell tc = new TableCell();
//------------这里的问题--------------------------------------
DropDownList dd_1 = new DropDownList();
DropDownList dd_2 = new DropDownList();
if(j==1)
{
tc.BackColor = ColorTranslator.FromHtml("#dfdfdf");
tc.Width = 147;
tc.Text = "品名:";
tc.Controls.Add(dd_1);
tc.Controls.Add(dd_2);
//------------------------------------------------------------
}
else
{
tc.Width = 69;
string str_tc = "<a href='?iID="+ThisConn.Ds.Tables[0].Rows[i]["iID"]+"' target='_blank'>";
if(ThisConn.Ds.Tables[0].Rows[i]["cPIC"].ToString() != null && ThisConn.Ds.Tables[0].Rows[i]["cPIC"].ToString() != "")
{
str_tc = str_tc + "<IMG src='../image/MerPic/"+ThisConn.Ds.Tables[0].Rows[i]["cPIC"].ToString()+"' width='65' height='50' border='1' class='text'>";
}
else
{
str_tc = str_tc + "<IMG src='../image/MerNoImage.gif' width='65' height='50' border='1' class='text'>";
}
str_tc = str_tc + "</a>";
tc.Text = str_tc;
}
tr.Cells.Add(tc);
}
tab_HotMer.Rows.Add(tr);
}
......
------------------------------------------------------
在table中显示出来控件dd_1和dd_2显示在同一行。请问怎么在不别外分行或加表格的前提下让它们显示在不同的行,就像把两个控件中间加一个<br>那种。。。。