|
Prev: IIS on Vista home premium?
Next: kaufmaennische jobs im ausland dortmund ausland jobboerse suche Tieraerztin Tierarzt Polizeivollzugsbeamte Polizeivollzugsbeamter
From: COHENMARVIN on 3 Jul 2008 10:48 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 <br />. How do I get around this? Thanks, Marv
From: JJ on 3 Jul 2008 11:11 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 <br />. How do I get around this? > Thanks, > Marv
From: Patrice on 3 Jul 2008 13:09 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 <br />. How do I get around this? > Thanks, > Marv
From: clintonG on 3 Jul 2008 14:24
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 <br />. How do I get around this? > Thanks, > Marv |