Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sitemapnode(breadcrumb) value changes with multiple users

Sitemapnode(breadcrumb) value changes with multiple users

Scheduled Pinned Locked Moved C#
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nitin_ion
    wrote on last edited by
    #1

    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") %>
    
    P Richard DeemingR 2 Replies Last reply
    0
    • N nitin_ion

      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") %>
      
      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      This is a pure ASP.NET question. You're most likely to get an answer there as that's a much more appropriate forum.

      1 Reply Last reply
      0
      • N nitin_ion

        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") %>
        
        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        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

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups