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.
[color=blue]
>-----Original Message-----
>I am wondering how i can put an ampersand character into[/color]
the value attribute[color=blue]
>of a key in the appSettings section of my web.config[/color]
file. If i try to[color=blue]
>simply type it in, then run my web app, i get the[/color]
following error:[color=blue]
>----------------------------------------------------------[/color]
------------------[color=blue]
>------------------------------------------------
>Parser Error Message: This is an unexpected token. The[/color]
expected token is[color=blue]
>'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?[/color]
atrs=y&prodid=" />[color=blue]
>Line 71: </appSettings>
>Line 72: </configuration>
>----------------------------------------------------------[/color]
------------------[color=blue]
>------------------------------------------------
>I've tried to escape the character as "\&" but that didnt[/color]
do anything.[color=blue]
>
>Thanks in advance,
>- Aaron.
>
>
>.
>[/color]