O'Reilly logo

Microsoft® SharePoint® Designer 2010 Unleashed by Kathy Hughes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encoded Characters

After changing the site map provider to the CombinedNavSiteMapProvider I found that where I’d used special characters in my top-level navigation links, such as &, the characters were not correctly escaped and instead I ended up with &amp, as shown in Figure 17.121. Interestingly, if you look at the properties of the CombinedNavSiteMapProvider in the web.config file, it shows the property EncodeOutput = "true", which is most likely at the root of the problem!

Figure 17.121 Illegal characters in top-level navigation.

image

In order to resolve incorrectly escaped characters, in the <SharePoint:AspMenu> control add the EncodeTitle property ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required