Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Stop ambersand from getting html converted when runat="server" [modified]

Stop ambersand from getting html converted when runat="server" [modified]

Scheduled Pinned Locked Moved Web Development
htmlsysadmindata-structureshelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    livez
    wrote on last edited by
    #1

    Hello! When I set runat="server" on a link of mine the url gets encoded so that for instance ampersand gets replaced with & amp ;. This is usually fine but in my case it´s a thickbox url, and when the url gets encoded the thickbox gets messed up. So is there any way to stop the url from getting encoded when I have runat="server" ? EDIT: I think maybe I was barking up the wrong tree, this was probably not the cause of the error.

    modified on Tuesday, June 17, 2008 2:40 AM

    S 1 Reply Last reply
    0
    • L livez

      Hello! When I set runat="server" on a link of mine the url gets encoded so that for instance ampersand gets replaced with & amp ;. This is usually fine but in my case it´s a thickbox url, and when the url gets encoded the thickbox gets messed up. So is there any way to stop the url from getting encoded when I have runat="server" ? EDIT: I think maybe I was barking up the wrong tree, this was probably not the cause of the error.

      modified on Tuesday, June 17, 2008 2:40 AM

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      For future reference: & is a special character in HTML, so literal ampersands need to be replaced with the entity & - this goes for URLs as well as everything else. ASP.NET will do some of that for you, but it's a good idea to get in the habit of escaping them yourself.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      L 1 Reply Last reply
      0
      • S Shog9 0

        For future reference: & is a special character in HTML, so literal ampersands need to be replaced with the entity & - this goes for URLs as well as everything else. ASP.NET will do some of that for you, but it's a good idea to get in the habit of escaping them yourself.

        Citizen 20.1.01

        'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

        L Offline
        L Offline
        livez
        wrote on last edited by
        #3

        thanks for your reply!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups