I have a user website, having pages Home-->Brands --> Properties --> Designs --> Objects. Each page having its own sets of selection value.
Using breadcrumb navigation (sitemap path) in master page, and all the pages of website uses this masterapge.
Problem: When there are multiple user logged in diffrent machines, the breadcrumb node value (for a user) changes according to the latest selected value, inside any page (by latest slection of any other user).
Example: User A clicked Home-->Brands(Accenture)-->Properties(Accentire Prop).... and in the same time if another User B clciked Home-->Brands(Samsung)-->Properties(Samsung
Prop)....
Then navigation trail for user A changes(when he selects the Designs(Accenture Des)) to the latest selection by any other user (user B), i.e.
Home-->Brands(Samsung)-->Properties(Samsung Prop) --> Designs (Accenture Des).
xsorv
Member
4 Points
6 Posts
Sitemapnode(breadcrumb) value changes when multiple users.
Sep 22, 2011 07:56 AM|LINK
Hi,
I have a user website, having pages Home-->Brands --> Properties --> Designs --> Objects. Each page having its own sets of selection value.
Using breadcrumb navigation (sitemap path) in master page, and all the pages of website uses this masterapge.
Problem: When there are multiple user logged in diffrent machines, the breadcrumb node value (for a user) changes according to the latest selected value, inside any page (by latest slection of any other user).
Example: User A clicked Home-->Brands(Accenture)-->Properties(Accentire Prop).... and in the same time if another User B clciked Home-->Brands(Samsung)-->Properties(Samsung Prop)....
Then navigation trail for user A changes(when he selects the Designs(Accenture Des)) to the latest selection by any other user (user B), i.e. Home-->Brands(Samsung)-->Properties(Samsung Prop) --> Designs (Accenture Des).
Please help why it happens.
CODE:-
IN WEB.SITEMAP:
<siteMapNode title="" description="">
<siteMapNode url="~/Secure/Home.aspx" title="HOME" description="" roles="*" >
<siteMapNode url="~/Secure/Properties.aspx" title="Properties" description="" roles="*" >
<siteMapNode url="~/Secure/Designs.aspx" title="Style Guides Designs" description="" roles="*" >
<siteMapNode url="~/Secure/Objects.aspx" title="Objects" description="" roles="*" />
</siteMapNode>
</siteMapNode>
</siteMapNode>
In WEB.CONFIG
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true"> <providers> <clear/> <add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" /> </providers> </siteMap><div id="SiteMapContainer" class="siteMapContainer" runat="server"> <asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparator=" \ " PathDirection="RootToCurrent" ParentLevelsDisplayed="10"> <CurrentNodeTemplate> <%# Eval ("title") %> </CurrentNodeTemplate> <RootNodeTemplate> <a href="Home.aspx"> <%# Eval ("title") %> </a> </RootNodeTemplate> </asp:SiteMapPath> </div>if (SiteMap.CurrentNode != null) { SiteMapNode currentNode = SiteMap.CurrentNode; currentNode.ParentNode.ReadOnly = true; currentNode.ReadOnly = false; currentNode.Title = _brand.BrandName ?? currentNode.Title.ToString(); currentNode.Url = BuildQueryString(currentNode.Key); currentNode.ReadOnly = true; currentNode.ParentNode.ReadOnly = false; currentNode = currentNode.ParentNode; currentNode.ReadOnly = false; ItemSelectionLink.NavigateUrl = BuildQueryString(currentNode.Key); currentNode.ReadOnly = true; }sitemap