Пример #1
0
        private void Load_External_Page(string PageIndexID)
        {
            Page_PropertyMgr myPage_PropertyMgr = new Page_PropertyMgr();
            Page_ExtLink     myPage_ExtLink     = myPage_PropertyMgr.Get_Page_ExtLink(PageIndexID);

            Response.Redirect(myPage_ExtLink.Page_URL);
        }
Пример #2
0
        private void DataFill_ExtLink()
        {
            Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr();

            Page_ExtLink myPage_ExtLink = myPropertyMgr.Get_Page_ExtLink(_pageindexid);

            tbx_LinkURL.Text            = myPage_ExtLink.Page_URL;
            RadComboBox_LinkTarget.Text = myPage_ExtLink.Page_Target;
        }
Пример #3
0
        private void Refresh()
        {
            PageMgr          myPageMgr          = new PageMgr();
            Page_PropertyMgr myPage_PropertyMgr = new Page_PropertyMgr();
            PageIndex        myPageIndex        = myPageMgr.Get_PageIndex(_pageindexid);

            switch (myPageIndex.Page_Type)
            {
            case Page_Type.Normal_Page:
                iframe_PageEditor_Basic.Attributes["src"]    = string.Format("Pages/Default.aspx?PageIndexID={0}&PageLink=Disable", myPageIndex.PageIndexID);
                iframe_PageEditor_Advanced.Attributes["src"] = string.Format("Pages/Advanced.aspx?PageIndexID={0}&PageLink=Disable", myPageIndex.PageIndexID);

                // Button operating
                btn_DesignMode.CommandArgument = myPageIndex.PageIndexID;
                btn_DesignMode.Visible         = true;

                // Property
                btn_Preview.Visible = true;
                btn_Modify.Visible  = true;

                break;

            case Page_Type.Category:
                iframe_PageEditor_Basic.Attributes["src"]    = string.Format("Pages/Category.aspx?PageIndexID={0}&PageLink=Disable", myPageIndex.PageIndexID);
                iframe_PageEditor_Advanced.Attributes["src"] = string.Format("Pages/Category.aspx?PageIndexID={0}&PageLink=Disable", myPageIndex.PageIndexID);

                // Button operating
                btn_DesignMode.CommandArgument = null;
                btn_DesignMode.Visible         = false;

                // Property
                btn_Preview.Visible = false;
                btn_Modify.Visible  = false;

                break;

            case Page_Type.Internal_Page_Pointer:
                Page_IntLink myPage_IntLink = myPage_PropertyMgr.Get_Page_IntLink(PageIndexID);

                iframe_PageEditor_Basic.Attributes["src"]    = string.Format("Pages/Default.aspx?PageIndexID={0}&PageLink=Disable", myPage_IntLink.PagePointerID);
                iframe_PageEditor_Advanced.Attributes["src"] = string.Format("Pages/Default.aspx?PageIndexID={0}&PageLink=Disable", myPage_IntLink.PagePointerID);

                // Button operating
                btn_DesignMode.CommandArgument = null;
                btn_DesignMode.Visible         = false;

                // Property
                btn_Preview.Visible = false;
                btn_Modify.Visible  = false;

                break;

            case Page_Type.External_Link:
                Page_ExtLink myPage_ExtLink = myPage_PropertyMgr.Get_Page_ExtLink(PageIndexID);

                iframe_PageEditor_Basic.Attributes["src"]    = string.Format(myPage_ExtLink.Page_URL);
                iframe_PageEditor_Advanced.Attributes["src"] = string.Format(myPage_ExtLink.Page_URL);

                // Button operating
                btn_DesignMode.CommandArgument = null;
                btn_DesignMode.Visible         = false;

                // Property
                btn_Preview.Visible = false;
                btn_Modify.Visible  = false;

                break;

            default:
                iframe_PageEditor_Basic.Attributes["src"]    = string.Format("/Homepage.aspx?PageIndexID={0}ThisIsDefault", myPageIndex.PageIndexID);
                iframe_PageEditor_Advanced.Attributes["src"] = string.Format("/Homepage.aspx?PageIndexID={0}ThisIsDefault", myPageIndex.PageIndexID);

                // Button operating
                btn_DesignMode.CommandArgument = null;
                btn_DesignMode.Visible         = false;

                // Property
                btn_Preview.Visible = false;
                btn_Modify.Visible  = false;

                break;
            }

            // Page Property
            //PageProperty_Show.PageIndexID = _pageindexid;
            // Page Privacy
            //PagePrivacy_Show.PageIndexID = _pageindexid;
        }