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");

相关文章:

  • 2022-12-23
  • 2021-09-18
  • 2021-05-18
  • 2021-11-01
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案