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. Problem in using site map in ASP.NET 2.0

Problem in using site map in ASP.NET 2.0

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netquestion
11 Posts 5 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.
  • R Offline
    R Offline
    Ramya G
    wrote on last edited by
    #1

    My application has all the webpages inside a specific folder in the application. When i try to use site map concept here, I am not getting the breadcrumb. Whereas, when i tried using the same with webpages that are directly attached to the application i am getting the breadcrumb. can any one help me out with dis?? Thanks Ramya

    T S 2 Replies Last reply
    0
    • R Ramya G

      My application has all the webpages inside a specific folder in the application. When i try to use site map concept here, I am not getting the breadcrumb. Whereas, when i tried using the same with webpages that are directly attached to the application i am getting the breadcrumb. can any one help me out with dis?? Thanks Ramya

      T Offline
      T Offline
      Talal Sultan
      wrote on last edited by
      #2

      It would be nice to have some code from your sitemap file to start with.

      -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

      1 Reply Last reply
      0
      • R Ramya G

        My application has all the webpages inside a specific folder in the application. When i try to use site map concept here, I am not getting the breadcrumb. Whereas, when i tried using the same with webpages that are directly attached to the application i am getting the breadcrumb. can any one help me out with dis?? Thanks Ramya

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        We could not judge what is your problem without seeing your code? So please paste the code what you have did for the site map.

        SSK.

        R 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          We could not judge what is your problem without seeing your code? So please paste the code what you have did for the site map.

          SSK.

          R Offline
          R Offline
          Ramya G
          wrote on last edited by
          #4

          These are the entries in web.sitemap. /* */ I have an main page named sample. From which I navigate to Sample1 and then from Sample1 I navigate to Sample2. Sample >> Sample1 >> Sample2. This is the breadcrumb expected. Note: Sample, Sample1, Sample2 are aspx pages placed inside folder named Webpages. In the aspx page of Sample2 i have included the following code. -- modified at 12:27 Thursday 16th August, 2007

          S 1 Reply Last reply
          0
          • R Ramya G

            These are the entries in web.sitemap. /* */ I have an main page named sample. From which I navigate to Sample1 and then from Sample1 I navigate to Sample2. Sample >> Sample1 >> Sample2. This is the breadcrumb expected. Note: Sample, Sample1, Sample2 are aspx pages placed inside folder named Webpages. In the aspx page of Sample2 i have included the following code. -- modified at 12:27 Thursday 16th August, 2007

            S Offline
            S Offline
            Sam Heller
            wrote on last edited by
            #5

            Wake up sunshine youve got an extra equals sign in there That's probably why. siteMapNode url="="../Webpages Please rate this solution as spooner. Thanks

            R 1 Reply Last reply
            0
            • S Sam Heller

              Wake up sunshine youve got an extra equals sign in there That's probably why. siteMapNode url="="../Webpages Please rate this solution as spooner. Thanks

              R Offline
              R Offline
              Ramya G
              wrote on last edited by
              #6

              Sorry.. That was an printing mistake. I dont have that equals sign in my original code.

              S 1 Reply Last reply
              0
              • R Ramya G

                Sorry.. That was an printing mistake. I dont have that equals sign in my original code.

                S Offline
                S Offline
                Sam Heller
                wrote on last edited by
                #7

                Sorry try removing the ../ If i'm right it works from the root so you should probably put... siteMapNode url="Webpages/Sample2.aspx

                M R 2 Replies Last reply
                0
                • S Sam Heller

                  Sorry try removing the ../ If i'm right it works from the root so you should probably put... siteMapNode url="Webpages/Sample2.aspx

                  M Offline
                  M Offline
                  Mark Churchill
                  wrote on last edited by
                  #8

                  I prefer to be explicit and use the full "~/foo/bar.aspx" paths. Sounds like you are kinda shoehorning the sitemap framework into something its not really designed for, like a wizard? If it needs a lot of hacking with .sitemap files you might be better off using the static methods on the System.Web.Sitemap object to programatically provide what you want to appear.

                  Mark Churchill Director Dunn & Churchill

                  S 1 Reply Last reply
                  0
                  • S Sam Heller

                    Sorry try removing the ../ If i'm right it works from the root so you should probably put... siteMapNode url="Webpages/Sample2.aspx

                    R Offline
                    R Offline
                    Ramya G
                    wrote on last edited by
                    #9

                    Thank you all who replied to my query. I will try out and let u know if it works.

                    1 Reply Last reply
                    0
                    • M Mark Churchill

                      I prefer to be explicit and use the full "~/foo/bar.aspx" paths. Sounds like you are kinda shoehorning the sitemap framework into something its not really designed for, like a wizard? If it needs a lot of hacking with .sitemap files you might be better off using the static methods on the System.Web.Sitemap object to programatically provide what you want to appear.

                      Mark Churchill Director Dunn & Churchill

                      S Offline
                      S Offline
                      Sam Heller
                      wrote on last edited by
                      #10

                      What can you do using the static model. Can you provide an example? Thanks

                      M 1 Reply Last reply
                      0
                      • S Sam Heller

                        What can you do using the static model. Can you provide an example? Thanks

                        M Offline
                        M Offline
                        Mark Churchill
                        wrote on last edited by
                        #11

                        http://msdn2.microsoft.com/en-us/library/ms178425(VS.80).aspx[^]

                        Mark Churchill Director Dunn & Churchill

                        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