专注于.NET技术
坚持每天都要到博客圆里逛一逛. 哈哈!!!JodyJin
private Control seachControl(Control it,string id)
 {
            Control oo=null;
            foreach(Control c in it.Controls)
              {
                oo=c.FindControl(id);
               if (oo!=null)
              {
                   
                    break;
               }

               else
                    {
                    if (c.Controls.Count>0)
                   {
                      oo=seachControl(c,id);
                       if (oo!=null)
                            {
                               return oo;
                       }

                  }

               }

    }

    return oo;
       }
posted on 2006-02-27 14:29  博客人  阅读(309)  评论(0编辑  收藏  举报