
Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
<br />
Hi Mark,
I've tried that, but it doesn't work. It crashes the
application if you just enter <br/> in the web.config file and if you escape
the less than / greater than characters, it just comes out as <br/> in the
text.
Segundo Serrano - 30 May 2008 10:38 GMT
Hi,
<appSettings>
<add key="XXX" value="XXX-zzzz" />
</appSettings>
-------------------------------------------------------------------
Label1.Text = ConfigurationManager.AppSettings("XXX").Replace("-", "<br />")
HTH,
S. Serrano P.
Sistemas
JABSOFT
blog: http://dotnet-peru.blogspot.com
511-91974972
511-2428802
--------------------------------------------------------------------------------
"Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message
news:OpHPLUjwIHA.3780@TK2MSFTNGP03.phx.gbl...
<br />
Hi Mark,
I've tried that, but it doesn't work. It crashes the
application if you just enter <br/> in the web.config file and if you escape
the less than / greater than characters, it just comes out as <br/> in the
text.
rogers.terry@gmail.com - 30 May 2008 10:48 GMT
> Hi Mark,
> I've tried that, but it doesn't work. It crashes the
> application if you just enter <br/> in the web.config file and if you escape
> the less than / greater than characters, it just comes out as <br/> in the
> text.
Try a Literal instead of a Label.
> <br />
Mark,
you were right. I realised that I was using a span directly
rather than an asp:label to render a span. If you set the label text it
does process the <br> and render a new line.