By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,399 Members | 1,591 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,399 IT Pros & Developers. It's quick & easy.

SiteMap, SiteMapPath is Escaping Special Characters

P: n/a
We are dynamically changing the title property of nodes in our sitemappath to
reflect the names of products by handling the SiteMapResolve event.

We have some unicode characters in our product names, stored in our db using
escape characters like: "è"

When we set the SiteMapNode.Title to that value it is escaped by the
sitemappath to "è" which results in the ampsand and code being printed
out vs the desired character of: è

Any ideas on how to make the sitemappath stop doing this and behave like
other .net controls?

Thanks.
May 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The original characters in this thread are being interpreted by the browser,
so its hard to understand what the problem was, but this issue was resolved
by calling HttpUtility.HtmlDecode on the string before sending it to the
sitemappath.

The special characters were then re-translated by the sitemap and thus
displayed correctly in the browser.

"michaelri" wrote:
We are dynamically changing the title property of nodes in our sitemappath to
reflect the names of products by handling the SiteMapResolve event.

We have some unicode characters in our product names, stored in our db using
escape characters like: "è"

When we set the SiteMapNode.Title to that value it is escaped by the
sitemappath to "è" which results in the ampsand and code being printed
out vs the desired character of: è

Any ideas on how to make the sitemappath stop doing this and behave like
other .net controls?

Thanks.
May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.