/// <summary> /// Ensures that StagingTaskGroupMenu control is inserted correctly into the header. /// </summary> private void EnsureStagingTaskGroupMenu() { if (StagingTaskInfoProvider.LoggingOfStagingTasksEnabled(SiteContext.CurrentSiteName)) { CMSUserControl stagingTaskGroupMenu = Page.LoadUserControl("~/CMSAdminControls/UI/StagingTaskGroupMenu.ascx") as CMSUserControl; if (stagingTaskGroupMenu != null) { plcStagingTaskGroupContainer.Visible = true; plcStagingTaskGroup.Controls.Add(stagingTaskGroupMenu); plcStagingTaskGroup.Visible = true; } } }