Putting (&) ampersand sign in a SiteMapNode

Have you tried adding an ampersand (&) in an ASP.NET SiteMapNode?

For eg: The following will not work


<siteMapNode url="~/Something.aspx?CatID=54" title="ASP.NET 2.0 & 3.5" description="" />




To add an ampersand sign in the sitemapnode, use either & amp;(without space) or & #38;(without space) as shown below:


<siteMapNode url="~/Something.aspx?ID=54" title="ASP.NET 2.0 &amp; 3.5" description="" />


1 comment: