예제 #1
0
        private TControl DealChildControl <TControl>(Control template, Type childControlType, InitControlDelegate <TControl> initDelegate) where TControl : Control
        {
            TControl ctrl = (TControl)WebControlUtility.FindControl(this.Page, typeof(HtmlHead), true);

            if (ctrl != null && initDelegate != null)
            {
                initDelegate(ctrl);
            }

            return(ctrl);
        }
예제 #2
0
        private TControl DealChildControl <TControl>(Control template, string controlID, InitControlDelegate <TControl> initDelegate) where TControl : Control
        {
            TControl ctrl = (TControl)WebControlUtility.FindControlByHtmlIDProperty(template, controlID, true);

            if (ctrl != null && initDelegate != null)
            {
                initDelegate(ctrl);
            }

            return(ctrl);
        }