Пример #1
0
        public static Control FindControlEx(string id, Control parent)
        {
            Control ret = parent.FindControl(id);

            if (null == ret)
            {
                foreach (Control child in parent.Controls)
                {
                    ret = ReflectionServices.FindControlEx(id, child);
                    if (null != ret)
                    {
                        break;
                    }
                }
            }
            return(ret);
        }