Last post Apr 30, 2006 09:12 AM by KirkOlson
Apr 30, 2006 09:12 AM|KirkOlson|LINK
I am trying to localize my sitemap. I have created several web.sitemap.NN.resx files and i'm using implicit resources by setting resourceKeys in my web.sitemap file. So far so good, everything is working well when I change the
language preference in IE internet options.
However I have several imagebuttons on my website which I want to use to change the language of my website on the fly. These buttons work well for all my pages that use implicit or explicit resources but NOT for the web.sitemap.
Therefore my main menu, which is based on the web.sitemap using the standard SitemapDatasource, does not reflect the language I'v chosen by clicking on the button.
I have the PostbackURL property of the imagebuttons set to: ~/Default.aspx?Language=NN
(where 'NN' represents the language codes I use, en-US, de-DE and so on)
I have the following code in my Default.aspx.cs
override void InitializeCulture()
Again, by clicking these buttons all localization is working well except for the web.sitemap. I have tried using explixit resources in the web.sitemap as well but it didn't help. What am I doing wrong?
Thanx in advance,