private void Page_Init() { // Load Page Properties HtmlMeta myKeyword = new HtmlMeta(); myKeyword.Name = "Keyword"; myKeyword.Content = myPage_Loading_Info.Page_Keyword; Header.Controls.Add(myKeyword); HtmlMeta myDescription = new HtmlMeta(); myDescription.Name = "Description"; myDescription.Content = myPage_Loading_Info.Page_Description; this.Header.Controls.Add(myDescription); // Add CSS for Advanced window string[] CssFiles = { "~/App_Themes/NexusCore/Editor.css", }; foreach (string CssFile in CssFiles) { HtmlLink cssEditor_Link = new HtmlLink(); cssEditor_Link.Href = CssFile; cssEditor_Link.Attributes.Add("type", "text/css"); cssEditor_Link.Attributes.Add("rel", "stylesheet"); Header.Controls.Add(cssEditor_Link); } // Add Script File for Advanced window string[] Scripts = { }; foreach (string myScript in Scripts) { string MapPath = Request.ApplicationPath; if (MapPath.EndsWith("/")) { MapPath = MapPath.Remove(MapPath.Length - 1) + myScript; } else { MapPath = MapPath + myScript; } HtmlGenericControl scriptTag = new HtmlGenericControl("script"); scriptTag.Attributes.Add("type", "text/javascript"); scriptTag.Attributes.Add("src", MapPath); Header.Controls.Add(scriptTag); } // Add Script Manager ScriptManager myScriptMgr = new ScriptManager(); myScriptMgr.ID = "ScriptManager_NexusCore"; HtmlForm myForm = (HtmlForm)Page.Master.FindControl("Form_NexusCore"); myForm.Controls.Add(myScriptMgr); // Add PlaceHolder PlaceHolder myPlaceHolder = new PlaceHolder(); myPlaceHolder.ID = "PlaceHolder_AdvancedMode"; #region Add Control Manager Windows // Create CodeBlock RadScriptBlock myCodeBlock = new RadScriptBlock(); // Create Script Tag HtmlGenericControl myCodeBlock_ScriptTag = new HtmlGenericControl("Script"); myCodeBlock_ScriptTag.Attributes.Add("type", "text/javascript"); myCodeBlock_ScriptTag.InnerHtml = Nexus.Core.Phrases.PhraseMgr.Get_Phrase_Value("NexusCore_PageEditor_PoPWindow"); myCodeBlock.Controls.Add(myCodeBlock_ScriptTag); // Create Window Manager RadWindowManager myWindowManager = new RadWindowManager(); myWindowManager.ID = "RadWindowManager_ControlManager"; // Create RadWindow RadWindow myRadWindow = new RadWindow(); myRadWindow.ID = "RadWindow_ControlManager"; myRadWindow.Title = "User Control Manager"; myRadWindow.ReloadOnShow = true; myRadWindow.ShowContentDuringLoad = false; myRadWindow.Modal = true; myRadWindow.Animation = WindowAnimation.Fade; myRadWindow.AutoSize = true; myRadWindow.Behaviors = WindowBehaviors.Close; myRadWindow.InitialBehaviors = WindowBehaviors.Resize; //myRadWindow.DestroyOnClose = true; myRadWindow.KeepInScreenBounds = true; myRadWindow.VisibleStatusbar = false; myWindowManager.Windows.Add(myRadWindow); // Create AjaxManager RadAjaxManager myRadAjaxManager = new RadAjaxManager(); myRadAjaxManager.ID = "RadAjaxManager_ControlManger"; myRadAjaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_AjaxRequest); // Add to Place Holder myPlaceHolder.Controls.Add(myCodeBlock); myPlaceHolder.Controls.Add(myWindowManager); myPlaceHolder.Controls.Add(myRadAjaxManager); #endregion #region Add Warp Controls and Dock Layout // Remove inline Controls HtmlGenericControl myContentDiv = (HtmlGenericControl)Page.Master.FindControl("pageWrapContainer"); Page.Master.Controls.Remove(myContentDiv); // Create Hidden Update_Panel UpdatePanel myUpdatePanel_Docks = new UpdatePanel(); myUpdatePanel_Docks.ID = "UpdatePanel_Docks"; // Create myRadAjaxManager Postback Trigger PostBackTrigger RadAjaxTrigger = new PostBackTrigger(); RadAjaxTrigger.ControlID = myRadAjaxManager.ID; myUpdatePanel_Docks.Triggers.Add(RadAjaxTrigger); // Add inLine Controls back myPlaceHolder.Controls.Add(myUpdatePanel_Docks); //myUpdatePanel_DockLayout.ContentTemplateContainer.Controls.Add(myDockLayout); myPlaceHolder.Controls.Add(myContentDiv); myForm.Controls.Add(myPlaceHolder); #endregion // Load MasterPage Control Nexus.Core.Templates.MasterPageMgr myMasterPageMgr = new Nexus.Core.Templates.MasterPageMgr(); myMasterPageMgr.Load_MasterPageControls_WebView(this.Page, myPage_Loading_Info.MasterPageIndexID); // Load Page Control PageMgr myPageMgr = new PageMgr(); myPageMgr.Load_PageControls_Advanced(this.Page, myPage_Loading_Info); }