Unescaped Ampersands In Menu Text

3 posts, 1 answers
  1. Shaun Peet
    Shaun Peet avatar
    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?
  2. Answer
    Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shaun Peet
    Shaun Peet avatar
    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