We help IT Professionals succeed at work.

How do you localize/globalize a sitemap file in ASP.NET

penlandt asked
Last Modified: 2012-05-08
I'm creating my first localized/globalized application and came across a problem I can't solve.  Can someone tell me how you localize/globalize the web.sitemap file so that translated versions of the page title and description appear when there is an appropriate resource file?  Please see the attached code for a simple example.  FYI...my resource file names (if that matters) follow the standard naming practice, i.e. resource.[cultureCode]-[countryCode].resx

Is it possible to do what I'm proposing?

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="<ReferenceToResourceKey>"  description="<ReferenceToResourceKey>">
        <siteMapNode url="~/Page1.aspx" title="<ReferenceToResourceKey>"  description="<ReferenceToResourceKey>" />
        <siteMapNode url="~/Page2.aspx" title="<ReferenceToResourceKey>"  description="<ReferenceToResourceKey>" />

Open in new window

Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.