Aaron,
Try using & in place of the ampersand character or the
decimal code equivalent.
The following may be worth noting:-
http://msdn.microsoft.com/library/default.asp?
url=/workshop/author/dhtml/reference/charsets/charset1.asp
Ewen.
-----Original Message-----
I am wondering how i can put an ampersand character into
the value attributeof a key in the appSettings section of my web.config
file. If i try tosimply type it in, then run my web app, i get the
following error:----------------------------------------------------------
------------------------------------------------------------------
Parser Error Message: This is an unexpected token. The
expected token is'SEMICOLON'. Line 70, position -3896.
Source Error:
Line 68: </system.web>
Line 69: <appSettings>
Line 70: <add key="specsheet"
value="http://dev.domain.com/products/prodspecs.aspx?
atrs=y&prodid=" />Line 71: </appSettings>
Line 72: </configuration>
----------------------------------------------------------
------------------------------------------------------------------
I've tried to escape the character as "\&" but that didnt
do anything.
Thanks in advance,
- Aaron.
.