Last post Nov 18, 2010 01:24 PM by tejkumar
Nov 17, 2010 08:24 PM|tejkumar|LINK
I am using explicit localization in sitemap and also have resource files in App_GlobalResources. Resource file names are Web.sitemap.en-US.resx and Web.sitemap.es-ES.resx
I have set cultureinfo in BasePage.CS by overriding InitializationCulture() method and also custom Base Page too(In custom base page i set culture info in page load..). No specification of culture info in webconfig. I do not see App_GlobalResources.compile
file in bin(Running this project on development server). In sitemap node enablelocalization is true and used following code.
I provided every information possible. What could be the isssue please help me.
Though the culture information is set before sitemap control is rendered why it couldnt find the appropriate file?
Nov 18, 2010 12:35 AM|Ahmed Moosa|LINK
this link should help :http://msdn.microsoft.com/en-us/library/ms178427.aspx
Nov 18, 2010 09:27 AM|tejkumar|LINK
using that link itself i have built sitemap localization but wasnt working..... Assume i have not defined culture information in basepage then how will sitemap know which culture to select because there are many language resources in App_GlobalResources like
filename.en-US.resx, filename.es-ES.resx etc.
sitemap Globalization Localization masterpage asp.net resources
Nov 18, 2010 01:24 PM|tejkumar|LINK
Strange things happening. If I have only one file filename.en-US.resx file in App_GlobalResources. Sitemap(Which is referring as
"$resources:Web.sitemap,key") is throwing error that object or key couldnt find. But when i have two files filename.en-US.resx and filename.resx[this has no keys it is empty], sitemap is working
fine. Please need some explanation.