Problem in using site map in ASP.NET 2.0
-
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
-
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
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
-
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
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.
-
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.
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
-
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
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
-
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
-
Sorry try removing the ../ If i'm right it works from the root so you should probably put...
siteMapNode url="Webpages/Sample2.aspx
-
Sorry try removing the ../ If i'm right it works from the root so you should probably put...
siteMapNode url="Webpages/Sample2.aspx
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
-
Sorry try removing the ../ If i'm right it works from the root so you should probably put...
siteMapNode url="Webpages/Sample2.aspx
-
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
What can you do using the static model. Can you provide an example? Thanks
-
What can you do using the static model. Can you provide an example? Thanks
http://msdn2.microsoft.com/en-us/library/ms178425(VS.80).aspx[^]
Mark Churchill Director Dunn & Churchill