Exemple #1
0
        protected bool LoadHtmlThemedControl()
        {
            string text = File.ReadAllText(this.Page.Request.MapPath(this.SkinPath), Encoding.UTF8);

            if (!string.IsNullOrEmpty(text))
            {
                text = TemplatedWebControl.ReplaceImageServerUrl(text);
                Control control = this.Page.ParseControl(text);
                control.ID = "_";
                this.Controls.Add(control);
                return(true);
            }
            return(false);
        }
Exemple #2
0
        protected bool LoadHtmlThemedControl()
        {
            string text = this.ControlText();

            if (!string.IsNullOrEmpty(text))
            {
                text = TemplatedWebControl.ReplaceImageServerUrl(text);
                Control control = this.Page.ParseControl(text);
                control.ID = "_";
                this.Controls.Add(control);
                return(true);
            }
            return(false);
        }