ghx88

递归页面

 private void DoControl(Control c)
        {
            if (c is TextBox)
            {
                TextBox temControl = c as TextBox;
                c.Text = String.Empty;
            }
            else
            {
                  foreach (Control cc in c.Controls)
                 {
                         DoControl(cc);
                  }
            }

        }

posted on 2007-07-16 15:28  ghx88  阅读(136)  评论(0编辑  收藏  举报

导航