Sitemapnode(breadcrumb) value changes with multiple users
-
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
In Master page.master
<%# Eval ("title") %>
-
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
In Master page.master
<%# Eval ("title") %>
This is a pure ASP.NET question. You're most likely to get an answer there as that's a much more appropriate forum.
-
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
In Master page.master
<%# Eval ("title") %>
The
SiteMap.CurrentNode
property returns an object which is shared across all requests to your application. Your code is changing properties on the node, which will affect every subsequent request to your application. The solution is simple: don't change the properties of the nodes in the site map. Of course, you'll need to find another way to do what you're trying to achieve.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer