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. Advertising

  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. Advertising

  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. Advertising

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. keithb
    Replies:
    2
    Views:
    8,070
    keithb
    Jun 7, 2006
  2. call_me_anything
    Replies:
    4
    Views:
    496
    Pete Becker
    Sep 30, 2007
  3. Cyril.Liu
    Replies:
    0
    Views:
    473
    Cyril.Liu
    Dec 2, 2008
  4. middletree

    how to copy from fields to other fields

    middletree, Nov 5, 2003, in forum: ASP General
    Replies:
    1
    Views:
    183
    middletree
    Nov 5, 2003
  5. Replies:
    0
    Views:
    311
Loading...

Share This Page