Ask a Question related to ASP.NET Security, Design and Development.
-
Eidolon #1
How: Ampersand in AppSettings value??
I am wondering how i can put an ampersand character into the value attribute
of a key in the appSettings section of my web.config file. If i try to
simply 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.
Eidolon Guest
-
Web.Config and appSettings tag
I am storing a database connection string in a key/value pair in the appSettings tag of the web.config file as follows: <appSettings> <add... -
output ampersand using XML::Twig
Dave Roe wrote: Be sure to read the fine prints then (or at least to test your code carefully after setting the option, I am not sure the fine... -
Ampersand in mailto: email address
Hi, We have a text file which gets read into a flash movie so we can change to the content of a page without recompiling the movie everytime. ... -
ampersand problem when passing multiple parameters in URL
Hi, when I try to pass some parameters in an URL, I always get an URL where the ampersand is represented as '&'. I tried: $url =... -
appSettings problem!
Hello! I have one problem with the appSettings on win2k srv machine with framework 1.1. Following line not work anymore (it worked fine with... -
Adrian Banks #2
Re: Ampersand in AppSettings value??
Try &
Adrian
"Eidolon" <aabdis@yahoo.com> wrote in message
news:eDlAFgtdDHA.2932@tk2msftngp13.phx.gbl...attribute> I am wondering how i can put an ampersand character into the value--> of a key in the appSettings section of my web.config file. If i try to
> simply 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.
>
>
Adrian Banks Guest
-
Eidolon #3
Re: Ampersand in AppSettings value??
> Try &
that works... thanks!
- Aaron.
Eidolon Guest



Reply With Quote

