Ejemplo n.º 1
0
        private void Load_Normal_Page(string PageIndexID)
        {
            // Check Properties

            // Check Security
            if (!Security.Users.UserStatus.Validate_PageAuth_View(this.Page))
            {
                Security.Pages.PrivacyMgr myPrivacyMgr           = new Security.Pages.PrivacyMgr();
                string _inherited_pageindexid                    = myPrivacyMgr.Get_Inherited_Privacy_PageIndexID(PageIndexID);
                Security.Pages.Page_PrivacyURL myPage_PrivacyURL = myPrivacyMgr.Get_Page_PrivacyURL(_inherited_pageindexid);
                Response.Redirect(myPage_PrivacyURL.ReturnURL);
            }

            // Load Pages Template
            Nexus.Core.Pages.Page_PropertyMgr myPropertyMgr = new Nexus.Core.Pages.Page_PropertyMgr();
            myPage_Loading_Info = myPropertyMgr.Get_Page_Loading_Info(PageIndexID);

            // Get MasterPageID
            //_master_pageindexid = myPage_Loading_Info.MasterPageIndexID;

            //this.StyleSheetTheme = myPage_Loading_Info.Theme;
            this.Theme          = myPage_Loading_Info.Theme;
            this.MasterPageFile = myPage_Loading_Info.MasterPage_URL;

            this.Title = myPage_Loading_Info.Page_Title;
        }
Ejemplo n.º 2
0
    protected override void OnPreInit(EventArgs e)
    {
        //myPage_Loading_Info = new Nexus.Core.Pages.Page_Loading_Info();

        // Check _pageindexid
        string _pageindexid = Request["PageIndexID"];

        if (DataEval.IsEmptyQuery(_pageindexid))
        {
            // URLrewrite
            _pageindexid = "1";
        }

        // Check PageExist
        Nexus.Core.Pages.PageMgr   myPageMgr   = new Nexus.Core.Pages.PageMgr();
        Nexus.Core.Pages.PageIndex myPageIndex = myPageMgr.Get_PageIndex(_pageindexid);

        // Check Properties

        // Check Security

        // Load Pages Template
        Nexus.Core.Pages.Page_PropertyMgr myPropertyMgr = new Nexus.Core.Pages.Page_PropertyMgr();

        myPage_Loading_Info = myPropertyMgr.Get_Page_Loading_Info(_pageindexid);

        // Get MasterPageID
        //_master_pageindexid = myPage_Loading_Info.MasterPageIndexID;

        //this.StyleSheetTheme = myPage_Loading_Info.Theme;
        this.Theme          = myPage_Loading_Info.Theme;
        this.MasterPageFile = myPage_Loading_Info.MasterPage_URL;

        this.Title = myPage_Loading_Info.Page_Title;

        base.OnPreInit(e);
    }