private void Load_Internal_Page(string PageIndexID) { Page_PropertyMgr myPage_PropertyMgr = new Page_PropertyMgr(); Page_IntLink myPage_IntLink = myPage_PropertyMgr.Get_Page_IntLink(PageIndexID); Response.Redirect(Nexus.Core.Tools.URLParse.Update_Arg(Request.Url.ToString(), "PageIndexID", myPage_IntLink.PagePointerID)); }
private void DataFill_IntLink() { Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr(); Page_IntLink myPage_IntLink = myPropertyMgr.Get_Page_IntLink(_pageindexid); tbx_LinkURL.Text = myPage_IntLink.Page_URL; RadComboBox_LinkTarget.Text = myPage_IntLink.Page_Target; }
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; }