private void GetControls(Control c)//c需要遍历查找的父控件
{
     if (c is HyperLink)
     {
         Response.Write(c.ID + "<br />");
         return;
     }
     if (c.HasControls())
         foreach (Control con in c.Controls)
             GetControls(con);
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-10-19
  • 2022-01-29
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案