打印本文 打印本文 关闭窗口 关闭窗口
ASP.NET中根据XML动态创建并使用WEB组件(二)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2551  更新时间:2009/4/23 10:46:29  文章录入:mintao  责任编辑:mintao
uencedataTB.ReadOnly=false;

                  

                  

                   //创建第三列(名称)

                   tCell = new HtmlTableCell();

                   Label nameLabel = new Label();

                   nameLabel.ID="nameLabel"+i.ToString();

                   nameLabel.Text="名称:";

                   nameLabel.Enabled=true;

                   tCell.Controls.Add(nameLabel);

                   tRow.Cells.Add(tCell);

                  

                   //创建第四列

                  tCell = new HtmlTableCell();

                   nameTB=new TextBox();

                   nameTB.ID="nameTB"+i.ToString();

                   nameTB.Width=120;

                   nameTB.Text=namestr[i];

                   nameTB.MaxLength=50;

                   tCell.Controls.Add(nameTB);

                   tRow.Cells.Add(tCell);

                  

                   //创建第五列(IP

                   tCell = new HtmlTableCell();

                   Label ipLabel = new Label();

                   ipLabel.ID="ipLabel"+i.ToString();

                   ipLabel.Text="IP:";

                   ipLabel.Enabled=true;

                   tCell.Controls.Add(ipLabel);

                   tRow.Cells.Add(tCell);

                  

                   //创建第六列

                   tCell = new HtmlTableCell();

                   ipTB=new TextBox();

                   ipTB.ID="ipTB"+i.ToString();

                   ipTB.Width=120;

                   ipTB.Text=ipstr[i];

                   ipTB.MaxLength=15;

                   tCell.Controls.Add(ipTB);

                   tRow.Cells.Add(tCell);

上一页  [1] [2] [3] [4]  下一页

打印本文 打印本文 关闭窗口 关闭窗口