protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); /****************************************************************************/ // * WARNING TO DEVELOPERS // * The redirect below is a SAFETY feature. Removing the redirect will not // * enable ML-only features on a lower version of AspDotNetStorefront. // * Attempting to do so can very easily result in a partially implemented // * feature, invalid or incomplete data in your DB, and other serious // * conditions that will cause your store to be non-functional. // * // * If you break your store attempting to enable ML-only features in PRO or // * Standard, our staff cannot help you fix it, and it will also invalidate // * your AspDotNetStorefront License. /***************************************************************************/ if (AppLogic.ProductIsMLExpress()) { Response.Redirect(AppLogic.AdminLinkUrl("restrictedfeature.aspx")); } IGD = CommonLogic.QueryStringCanBeDangerousContent("IGD"); Guid TargetCustomerGuid = new Guid(IGD); TargetCustomer = new Customer(TargetCustomerGuid, true); System.Collections.Generic.Dictionary <string, EntityHelper> eh = AppLogic.MakeEntityHelpers(); SiteMap1.LoadXml(new SiteMapPhoneOrder(eh, 1, TargetCustomer, IGD).Contents); }
protected void Page_Load(object sender, System.EventArgs e) { if (AppLogic.AppConfigBool("GoNonSecureAgain")) { SkinBase.GoNonSecureAgain(); } SectionTitle = AppLogic.GetString("sitemap.aspx.1", SkinID, ThisCustomer.LocaleSetting, true); SiteMap1.LoadXml(new SiteMapComponentArt(base.EntityHelpers, SkinID, ThisCustomer).Contents); }
protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); System.Collections.Generic.Dictionary <string, EntityHelper> eh = AppLogic.MakeEntityHelpers(); Customer ThisCustomer = ((AspDotNetStorefrontPrincipal)Context.User).ThisCustomer; SiteMap1.LoadXml(new SiteMapComponentArt(eh, 1, ThisCustomer).Contents); }
private void ShowChildPageMap() { SiteSettings siteSettings = CacheHelper.GetCurrentSiteSettings(); if (siteSettings == null) { return; } siteMapDataSource = (SiteMapDataSource)this.Page.Master.FindControl("ChildPageSiteMapData"); siteMapDataSource.SiteMapProvider = "Csite" + siteSettings.SiteId.ToString(CultureInfo.InvariantCulture); if (siteMapDataSource == null) { return; } //SiteMapNode node // = siteMapDataSource.Provider.FindSiteMapNode(Request.RawUrl); //if (node != null) //{ // siteMapDataSource.StartingNodeUrl = Request.RawUrl; //} SiteMapNode node = siteMapDataSource.Provider.FindSiteMapNode(currentPage.Url); if (node != null) { siteMapDataSource.StartingNodeUrl = node.Url; } else { node = siteMapDataSource.Provider.FindSiteMapNode(Request.RawUrl); if (node != null) { siteMapDataSource.StartingNodeUrl = Request.RawUrl; } } SiteMap1.MenuItemDataBound += new MenuEventHandler(SiteMap_MenuItemDataBound); SiteMap1.Orientation = Orientation.Vertical; SiteMap1.PathSeparator = '|'; SiteMap1.MaximumDynamicDisplayLevels = maximumDynamicDisplayLevels; SiteMap1.DataSourceID = siteMapDataSource.ID; SiteMap1.DataBind(); }
protected void Page_Load(object sender, System.EventArgs e) { if (AppLogic.AppConfigBool("GoNonSecureAgain")) { GoNonSecureAgain(); } SectionTitle = AppLogic.GetString("sitemap.aspx.1", SkinID, ThisCustomer.LocaleSetting); //SiteMap1.LoadXml(new SiteMapComponentArt(base.EntityHelpers,SkinID,ThisCustomer).Contents); Boolean showCustomerService = AppLogic.IsAdminSite || AppLogic.AppConfigBool("SiteMap.ShowCustomerService"); SiteMap1.LoadXml(new SiteMap(showCustomerService).Contents); }
protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); IGD = CommonLogic.QueryStringCanBeDangerousContent("IGD"); Guid TargetCustomerGuid = new Guid(IGD); TargetCustomer = new Customer(TargetCustomerGuid, true); System.Collections.Generic.Dictionary <string, EntityHelper> eh = AppLogic.MakeEntityHelpers(); SiteMap1.LoadXml(new SiteMapPhoneOrder(eh, 1, TargetCustomer, IGD).Contents); }
private void RenderSiteMap() { SiteMap1.Orientation = Orientation.Vertical; SiteMap1.PathSeparator = ','; SiteMap1.MaximumDynamicDisplayLevels = 20; SiteMap1.DataSourceID = this.siteMapDataSource.ID; SiteMap1.DataBind(); //System.Web.UI.WebControls.MenuItem menuItem; //menuItem = SiteMap1.FindItem(SiteUtils.GetActivePageValuePath()); //if (menuItem != null) //{ // menuItem.Selected = true; //} }
private void ShowChildPageMap() { if (!Visible) { return; } SiteSettings siteSettings = CacheHelper.GetCurrentSiteSettings(); if (siteSettings == null) { return; } siteMapDataSource = (SiteMapDataSource)this.Page.Master.FindControl("ChildPageSiteMapData"); if (siteMapDataSource == null) { return; } siteMapDataSource.SiteMapProvider = "mojosite" + siteSettings.SiteId.ToInvariantString(); if (WebConfigSettings.DisableViewStateOnSiteMapDataSource) { siteMapDataSource.EnableViewState = false; } //SiteMapNode node // = siteMapDataSource.Provider.FindSiteMapNode(Request.RawUrl); //if (node != null) //{ // siteMapDataSource.StartingNodeUrl = Request.RawUrl; //} SiteMapNode node = siteMapDataSource.Provider.FindSiteMapNode(currentPage.Url); if (node != null) { siteMapDataSource.StartingNodeUrl = node.Url; } else { node = siteMapDataSource.Provider.FindSiteMapNode(Request.RawUrl); if (node != null) { siteMapDataSource.StartingNodeUrl = Request.RawUrl; } } #if NET35 SiteMap1.MenuItemDataBound += new MenuEventHandler(SiteMap_MenuItemDataBound); SiteMap1.Orientation = Orientation.Vertical; SiteMap1.PathSeparator = '|'; SiteMap1.MaximumDynamicDisplayLevels = maximumDynamicDisplayLevels; SiteMap1.DataSourceID = siteMapDataSource.ID; SiteMap1.DataBind(); #else SiteMap1.Visible = false; SiteMap2.Visible = true; //SiteMap2.SkinID = menuSkinID; SiteMap2.PathSeparator = '|'; SiteMap2.CollapseImageToolTip = Resource.TreeMenuCollapseTooltip; SiteMap2.ExpandImageToolTip = Resource.TreeMenuExpandTooltip; SiteMap2.TreeNodeDataBound += new TreeNodeEventHandler(SiteMap2_TreeNodeDataBound); SiteMap2.DataSourceID = siteMapDataSource.ID; SiteMap2.DataBind(); #endif }