Ejemplo n.º 1
0
        protected void btn_Live_SetHomePage_Click(object sender, EventArgs e)
        {
            if (!DataEval.IsEmptyQuery(_pageindexid))
            {
                PageMgr   myPageMgr   = new PageMgr();
                PageIndex myPageIndex = myPageMgr.Get_PageIndex(_pageindexid);

                if (myPageIndex.Page_CategoryID == "2")
                {
                    Tools.AlertMessage.Show_Alert(this.Page, "<h4>Inactive page can not be set as homepage.", "Action failed!");
                    return;
                }


                Phrases.PhraseMgr myPhraseMgr = new Phrases.PhraseMgr();

                e2Data[] UpdateData =
                {
                    new e2Data("VarName",     "NexusCore_HomepageID"),
                    new e2Data("PhraseValue", _pageindexid)
                };

                myPhraseMgr.Edit_Phrase(UpdateData);

                OnClick(sender, e);
            }
        }
Ejemplo n.º 2
0
        protected void btn_HomeSwitch_Click(object sender, EventArgs e)
        {
            Phrases.PhraseMgr myPhraseMgr = new Phrases.PhraseMgr();

            e2Data[] UpdateData =
            {
                new e2Data("VarName",     "NexusCore_HomeSwitch"),
                new e2Data("PhraseValue", rbtn_HomeSwitch.SelectedValue)
            };

            myPhraseMgr.Edit_Phrase(UpdateData);

            Panel_Updated.Visible = true;
        }
Ejemplo n.º 3
0
        protected void btn_Live_SetHomePage_Click(object sender, EventArgs e)
        {
            if (!DataEval.IsEmptyQuery(_pageindexid))
            {
                Phrases.PhraseMgr myPhraseMgr = new Phrases.PhraseMgr();

                e2Data[] UpdateData =
                {
                    new e2Data("VarName",     "NexusCore_HomepageID"),
                    new e2Data("PhraseValue", _pageindexid)
                };

                myPhraseMgr.Edit_Phrase(UpdateData);

                OnClick(sender, e);
            }
        }