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. Web Development
  3. ASP.NET
  4. site navigation

site navigation

Scheduled Pinned Locked Moved ASP.NET
helpasp-netcomregexxml
5 Posts 4 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.
  • M Offline
    M Offline
    mylogics
    wrote on last edited by
    #1

    hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

    <siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
    <siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
    <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
    <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
    </siteMapNode>
    </siteMapNode>
    <siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
    <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
    <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
    </siteMapNode>
    </siteMapNode>
    </siteMapNode>
    </siteMap>

    but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's

    L S 2 Replies Last reply
    0
    • M mylogics

      hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:

      <?xml version="1.0" encoding="utf-8" ?>
      <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

      <siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
      <siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
      <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
      <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
      </siteMapNode>
      </siteMapNode>
      <siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
      <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
      <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
      </siteMapNode>
      </siteMapNode>
      </siteMapNode>
      </siteMap>

      but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi The problem with this control is that you cannot use same page for multiple nodes. As in your case are using ProductStone.aspx multiple times

      Regards Aman Bhullar www.arlivesupport.com[^]

      M 1 Reply Last reply
      0
      • L Lost User

        Hi The problem with this control is that you cannot use same page for multiple nodes. As in your case are using ProductStone.aspx multiple times

        Regards Aman Bhullar www.arlivesupport.com[^]

        M Offline
        M Offline
        mylogics
        wrote on last edited by
        #3

        what shud i do then...is there any other way..

        A 1 Reply Last reply
        0
        • M mylogics

          what shud i do then...is there any other way..

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Yes, You can use dummy query string or # with the url. That will resolve your issue !!

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          1 Reply Last reply
          0
          • M mylogics

            hi i am using sitemappath control in my website.i have some pages in common like: home>>stonecollection>>ProductStone>>Cart>>... home>>newarrivals>>ProductStone>>Cart>>... i use the following sitemap file:

            <?xml version="1.0" encoding="utf-8" ?>
            <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

            <siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
            <siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
            <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
            <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
            </siteMapNode>
            </siteMapNode>
            <siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
            <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
            <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
            </siteMapNode>
            </siteMapNode>
            </siteMapNode>
            </siteMap>

            but i got error:multiple nodes with same url found. when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node the problem is solved but i want sitemap in above pattern.tell me what to do..... thank's

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #5

            try like this..!

            <?xml version="1.0" encoding="utf-8" ?>
            <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

            <siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
            <siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
            <siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
            <siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
            </siteMapNode>
            </siteMapNode>
            <siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
            <siteMapNode url="ProductStone.aspx?ssd=asd" title="ProductStone" description="Product Stone page">
            <siteMapNode url="Cart.aspx?ssd=asd" title="Cart" description="Cart page"></siteMapNode>
            </siteMapNode>
            </siteMapNode>
            </siteMapNode>
            </siteMap>

            For More info of Menu Control refer this link..! Menu Control Selected Item Color Change Depending on Selection [^]

            LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

            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