How do I read html out of database fields and show it

Discussion in 'ASP .Net' started by COHENMARVIN@lycos.com, Jul 3, 2008.

  1. Guest

    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
     
    , Jul 3, 2008
    #1
    1. Advertisements

  2. JJ Guest

    Use a literal rather than a label to display it?
    JJ
    <> wrote in message
    news:...
    >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
     
    JJ, Jul 3, 2008
    #2
    1. Advertisements

  3. clintonG Guest

    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.



    <> wrote in message
    news:...
    >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
     
    clintonG, Jul 3, 2008
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vijay
    Replies:
    2
    Views:
    3,542
    vijaya kumar.P
    Aug 29, 2003
  2. keithb
    Replies:
    2
    Views:
    8,375
    keithb
    Jun 7, 2006
  3. Sean Davis
    Replies:
    16
    Views:
    1,061
    Dennis Lee Bieber
    Jan 12, 2007
  4. call_me_anything
    Replies:
    4
    Views:
    713
    Pete Becker
    Sep 30, 2007
  5. Thomas

    Picking out top three out of database

    Thomas, Dec 8, 2004, in forum: ASP General
    Replies:
    9
    Views:
    303
    Bob Barrows [MVP]
    Dec 16, 2004
  6. Thomas

    Picking out top three out of database

    Thomas, Dec 14, 2004, in forum: ASP General
    Replies:
    1
    Views:
    211
    s_m_b
    Dec 14, 2004
  7. JL
    Replies:
    2
    Views:
    247
    Tim Chase
    Dec 14, 2013
  8. Chris Angelico
    Replies:
    4
    Views:
    319
    Tim Chase
    Dec 19, 2013
Loading...