473,388 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

SiteMap, SiteMapPath is Escaping Special Characters

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
1 2359
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
6
by: Dave H | last post by:
I have to questions about SiteMaps 1st) Is there any way to use a wildcard in the SiteMapNode? I'd like: testpage.aspx?Type=Fruit&SubType=Apple and testpage.aspx?Type=Fruit&SubType=Orange ...
1
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
3
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only...
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Does anyone know a way to allow duplicate URL's in a sitemap? Here's my problem: I'm designing (almost done) an online store with the following navigational structure: Home / Department /...
3
by: lucius | last post by:
I have a .NET 2.0 web site that is made up of .aspx pages that are done in the Clasic-ASP-looking "inline method". I need to add a SiteMap Control to the pages in the site, and need to see an...
1
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, So the ever-lasting problem has remained until now - how to create a dynamic sitemap from information stored in a database. Microsoft's MSDN magazine covered how to do this using a...
1
by: Rob Meade | last post by:
Hi all, This is probably the most stupid of stupid questions being that I have been unable to find very much out online so far about it...anyway... I am creating a master page as a template...
7
by: wannymahoots | last post by:
optparse seems to be escaping control characters that I pass as arguments on the command line. Is this a bug? Am I missing something? Can this be prevented, or worked around? This behaviour...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.