Samm1502
asked on
How to enter a string that contains a double quote in web.config
Hi
I need to pass a string of characters to my application from web.config, the problem being that the string contains a double quote and the <> characters which in ASP.NET is fine because I can add an escape character in front of it but in the web.config this gives me an error because
the application thinks my string ends with the double quote regardeless of the escape character and the <> chars confuse it as it thinks they are part of the tag.
So how do I define a string such as
"¬()*^%$£\"!?\<\>,:;@~#{}[ ]+=|_`+\\' "
in web.config.
Thanks
Sam
I need to pass a string of characters to my application from web.config, the problem being that the string contains a double quote and the <> characters which in ASP.NET is fine because I can add an escape character in front of it but in the web.config this gives me an error because
the application thinks my string ends with the double quote regardeless of the escape character and the <> chars confuse it as it thinks they are part of the tag.
So how do I define a string such as
"¬()*^%$£\"!?\<\>,:;@~#{}[
in web.config.
Thanks
Sam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I used the HTML encodings and that works perfectly thanks.
Sam
Sam
http://forums.asp.net/p/1084923/1613191.aspx