コード例 #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);
        }