for(int m=0;m<3;m++)
{
TextBox tb=new TextBox();
tb.ID="tb"+m;
tb.Text="tb"+m;
TableCell tc=new TableCell();
tc.Controls.Add(tb);
TableRow tr=new TableRow();
tr.Cells.Add(tc);
card.Rows.Add(tr);
this.PlaceHolder1.Controls.Add(card);
}
在页面上显示的只有一列,4个控件, 怎样才能显示为一行???
{
TextBox tb=new TextBox();
tb.ID="tb"+m;
tb.Text="tb"+m;
TableCell tc=new TableCell();
tc.Controls.Add(tb);
TableRow tr=new TableRow();
tr.Cells.Add(tc);
card.Rows.Add(tr);
this.PlaceHolder1.Controls.Add(card);
}
在页面上显示的只有一列,4个控件, 怎样才能显示为一行???
解决方案 »
- VS2010 断点调试无效
- TreeView的动态绑定。
- 类或是属性头上加类似[CreateNew]这样的 东西,有什么用啊?有没具体点的解释?
- Repeater分页的问题,百分大送
- ASP.NET2.0 weg.config问题
- BS模式,CS樣式
- 数据库连接问题
- 急!请教一个listview的findcontrol方法问题!
- Could not load file or assembly 'stdole, Version=7.0.3300.0' 是怎么回事?
- 【新手求助】ajax请求改变repeater的数据源
- indexof() 的问题
- 发布系统时.由于net framework版本引起的问题,大家帮我看看吧!
{
TextBox tb=new TextBox(); this.PlaceHolder1.Controls.Add(tb);
}
TableRow tr=new TableRow();
for(int m=0;m<3;m++)
{
TextBox tb=new TextBox();
tb.ID="tb"+m;
tb.Text="tb"+m;
TableCell tc=new TableCell();
tc.Controls.Add(tb);
tr.Cells.Add(tc);
card.Rows.Add(tr);
this.PlaceHolder1.Controls.Add(card);
}