for (int i = 0; i < Page.Controls.Count; i++)
        {
            foreach (System.Web.UI.Control control in Page.Controls[i].Controls)
            {
               
                if (control is TextBox)
                {
                    (control as TextBox).Text  = "textbox";
                }
                else if(...)

                     //and also
            }
        }

相关文章:

  • 2021-09-15
  • 2021-08-19
  • 2022-12-23
  • 2021-07-25
  • 2021-11-21
  • 2021-07-03
  • 2021-12-02
猜你喜欢
  • 2022-03-10
  • 2022-12-23
  • 2021-12-03
  • 2021-10-27
  • 2022-12-23
  • 2021-09-12
  • 2022-02-14
相关资源
相似解决方案