From: COHENMARVIN on
I have database text fields that I am putting "<br />" in so that they
will appear on the web page with linebreaks in the text where I want
them. But when the fields are shown, this does not work - the source
looks like &lt;br /&gt;. How do I get around this?
Thanks,
Marv
From: JJ on
Use a literal rather than a label to display it?
JJ
<COHENMARVIN(a)lycos.com> wrote in message
news:bbedb60e-c9df-40db-b7db-c457224fd7aa(a)f36g2000hsa.googlegroups.com...
>I have database text fields that I am putting "<br />" in so that they
> will appear on the web page with linebreaks in the text where I want
> them. But when the fields are shown, this does not work - the source
> looks like &lt;br /&gt;. How do I get around this?
> Thanks,
> Marv


From: Patrice on
They are displayed using which controls ?

See :
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.boundfield.htmlencode.aspx

(this is a defautl safety measure but you can disable this if needed)


--
Patrice

<COHENMARVIN(a)lycos.com> a �crit dans le message de groupe de discussion :
bbedb60e-c9df-40db-b7db-c457224fd7aa(a)f36g2000hsa.googlegroups.com...
> I have database text fields that I am putting "<br />" in so that they
> will appear on the web page with linebreaks in the text where I want
> them. But when the fields are shown, this does not work - the source
> looks like &lt;br /&gt;. How do I get around this?
> Thanks,
> Marv


From: clintonG on
The HTML is being encoded. Its HtmlEncode being used or the database is
encoding the HTML. Learn how to avoid encoding the data and store it as
unencoded HTML.



<COHENMARVIN(a)lycos.com> wrote in message
news:bbedb60e-c9df-40db-b7db-c457224fd7aa(a)f36g2000hsa.googlegroups.com...
>I have database text fields that I am putting "<br />" in so that they
> will appear on the web page with linebreaks in the text where I want
> them. But when the fields are shown, this does not work - the source
> looks like &lt;br /&gt;. How do I get around this?
> Thanks,
> Marv