Stop ambersand from getting html converted when runat="server" [modified]
-
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 haverunat="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
-
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 haverunat="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
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.'
-
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.'