private void Page_Controls() { // Check Homepage PageMgr myPageMgr = new PageMgr(); if (DataEval.IsEmptyQuery(_pageindexid) || !myPageMgr.Chk_PageIndexID(_pageindexid) || !Convert.ToBoolean(Phrases.PhraseMgr.Get_Phrase_Value("NexusCore_HomeSwitch"))) { Response.Write("<table width=100% height=100%><tr><th>" + "<h1><strong>Thank you for visiting our web site.</strong></h1><p>Please return soon for updates.</p>" + "</th></tr></table>"); return; } // Load MasterPage Control bool isEditMode; if (Session["isEditMode"] != null) { isEditMode = Convert.ToBoolean(Session["isEditMode"]); } else { isEditMode = false; } Nexus.Core.Templates.MasterPageMgr myMasterPageMgr = new Nexus.Core.Templates.MasterPageMgr(); myMasterPageMgr.Load_MasterPageControls_WebView(this.Page, myPage_Loading_Info, isEditMode); // Load Page Control myPageMgr.Load_PageControls_WebView(this.Page, myPage_Loading_Info, isEditMode); }