Ejemplo n.º 1
0
    protected override void CreateChildControls()
    {
        ctrl = this.LoadUserControl("~/CMSModules/Content/Controls/DocTypeSelection.ascx") as CMSAbstractNewDocumentControl;

        if (ctrl == null)
        {
            throw new Exception("Document type selector does not exist.");
        }

        ctrl.ID = "dt";
        plc.Controls.Add(ctrl);

        base.CreateChildControls();
    }
Ejemplo n.º 2
0
    protected override void CreateChildControls()
    {
        ctrl = LoadUserControl("~/CMSModules/Content/Controls/DocTypeSelection.ascx") as CMSAbstractNewDocumentControl;

        if (ctrl == null)
        {
            throw new Exception("Page type selector does not exist.");
        }

        ctrl.ID = "dt";
        ctrl.HeadingLevel = 3;
        ctrl.RedirectWhenNoChoice = true;
        plc.Controls.Add(ctrl);

        base.CreateChildControls();
    }
    protected override void CreateChildControls()
    {
        ctrl = LoadUserControl(CONTENT_FOLDER + "Controls/DocTypeSelection.ascx") as CMSAbstractNewDocumentControl;

        if (ctrl == null)
        {
            throw new Exception("Page type selector does not exist.");
        }

        ctrl.ID                   = "dt";
        ctrl.HeadingLevel         = 3;
        ctrl.RedirectWhenNoChoice = true;
        plc.Controls.Add(ctrl);

        base.CreateChildControls();
    }