The trouble comes when I have to change the SiteMapProvider value, because I have a global variable with the selected language. I don't know the way to put this var into the atribute or if it's possible to do that in .NET
Have a look at http://forums.asp.net/thread/1636976.aspx . Also http://forums.asp.net/thread/1636976.aspx. Guy Smith-Ferrier's book is very good on the subject.
Also http://msdn2.microsoft.com/en-us/library/ms178427(vs.80).aspx
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
ubiko
0 Points
1 Post
Multilanguage Sitemaps
Apr 25, 2007 12:11 PM|LINK
I'm developing a website with four differents sitemaps (eng, fra,it, spa), each one refering to its own xml.
<siteMap> <providers> <add name="MenuCAS" type="System.Web.XmlSiteMapProvider" siteMapFile="Web1.Sitemap"/> <add name="MenuENG" type="System.Web.XmlSiteMapProvider" siteMapFile="Web2.Sitemap"/> <add name="MenuFRA" type="System.Web.XmlSiteMapProvider" siteMapFile="Web3.Sitemap"/> <add name="MenuITA" type="System.Web.XmlSiteMapProvider" siteMapFile="Web4.Sitemap"/> </providers> </siteMap>I add the code in the main page (index.aspx) of the site which is common for all the languages:
The trouble comes when I have to change the SiteMapProvider value, because I have a global variable with the selected language. I don't know the way to put this var into the atribute or if it's possible to do that in .NET
Some help will be very appreciated.
Saluts.
TATWORTH
All-Star
72395 Points
14016 Posts
MVP
Re: Multilanguage Sitemaps
Apr 25, 2007 04:37 PM|LINK
Have a look at http://forums.asp.net/thread/1636976.aspx . Also http://forums.asp.net/thread/1636976.aspx. Guy Smith-Ferrier's book is very good on the subject.
Also http://msdn2.microsoft.com/en-us/library/ms178427(vs.80).aspx
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239