All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Menu
/
Unescaped Ampersands In Menu Text
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
3 posts, 1 answers
Shaun Peet
571 posts
Member since:
Aug 2004
Posted 16 Apr 2008
Link to this post
I've got a menu bound from a database and some of the menu items contain ampersands (&) in the text of the menu. This creates validation errors:
http://validator.w3.org/check?uri=http%3A%2F%2Fhuronperthlakers.ca&charset=%28detect+automatically%29&doctype=Inline&group=0
I've tried to do a Replace("&","&") in the ItemDataBound server event but that doesn't seem to have any effect. Any ideas?
Answer
Erjan Gavalji
Admin
1455 posts
Posted 18 Apr 2008
Link to this post
Hi Shaun,
I just played with ampersand symbols in the menu text, but after I ran a
Replace
I got the page validated correctly. Please find attached the sample page I used. Am I missing something?
Kind regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions at the
new Telerik Support Center
AmpersandsInTextTest.zip
Shaun Peet
571 posts
Member since:
Aug 2004
Posted 18 Apr 2008
Link to this post
I thought I had already tried that but apparently I didn't do it right; it's working now as it should. Thanks and my apologies for the inconvenience.
Back to Top
Close