TextBox txt = new TextBox();
txt.ID="Text1";
txt.Width=250;
txt.Text="這是動態使用程式新增的TextBox!";
((HtmlForm )Page.FindControl("Form1")).Controls.Add(txt);
txt.ForeColor=Color.FromName("Green");
TextBox txt = new TextBox();
txt.ID="Text1";
txt.Width=250;
txt.Text="這是動態使用程式新增的TextBox!";
((HtmlForm )Page.FindControl("Form1")).Controls.Add(txt);
txt.ForeColor=Color.FromName("Green");