peter peter - 14 days ago 5
ASP.NET (C#) Question

How to implement localization in web.sitemap

Can you explain how to implement localization in web.sitemap please?

Answer

Use a global resource file.

App_GlobalResources\Web.sitemap.resx

Then use keys in the web.sitemap like;

<siteMapNode url="somepage.aspx" title="Name"  resourceKey="PageName"/>
Comments