Ejemplo n.º 1
0
        private void CreateTitle(System.Web.UI.HtmlControls.HtmlTableCell Parent)
        {
            System.Web.UI.HtmlControls.HtmlGenericControl titleText = new System.Web.UI.HtmlControls.HtmlGenericControl("div");
            titleText.Attributes["class"] = "titleText";
            System.Web.UI.HtmlControls.HtmlGenericControl close = new System.Web.UI.HtmlControls.HtmlGenericControl("div");
            close.Attributes["class"] = "close";

            Parent.Controls.Add(titleText);
            if (TitleTemplate == null)
            {
                if (Text == "")
                {
                    titleText.InnerHtml = "untitled";
                }
                else
                {
                    titleText.InnerHtml = Text;
                }
            }
            else
            {
                TitleTemplate.InstantiateIn(titleText);
            }


            if (Closable)
            {
                Parent.Controls.Add(close);
            }
        }
Ejemplo n.º 2
0
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        uxTitlePlaceHolder.Controls.Clear();
        uxContentPlaceHolder.Controls.Clear();

        ContentContainer container = new ContentContainer();

        if (TitleTemplate != null)
        {
            TitleTemplate.InstantiateIn(container);
            uxTitlePlaceHolder.Controls.Add(container);
        }
        else
        {
            uxTitlePlaceHolder.Visible = false;
        }

        container = new ContentContainer();
        if (ContentTemplate != null)
        {
            ContentTemplate.InstantiateIn(container);
            uxContentPlaceHolder.Controls.Add(container);
        }
        else
        {
            uxContentPanel.CssClass = "Clear";
        }
    }
Ejemplo n.º 3
0
        protected override void CreateChildControls()
        {
            phTitle.Controls.Clear();
            LearnMoreContainer lmcTitle = new LearnMoreContainer();

            TitleTemplate.InstantiateIn(lmcTitle);
            phTitle.Controls.Add(lmcTitle);

            phText.Controls.Clear();
            LearnMoreContainer lmcText = new LearnMoreContainer();

            TextTemplate.InstantiateIn(lmcText);
            phText.Controls.Add(lmcText);

            base.CreateChildControls();
        }