line feed and carriage return

Discussion in 'ASP General' started by aa, Apr 21, 2004.

  1. aa

    aa Guest

    In a database of I have text splited into new lined by pressing ENTER, and wanted these new lines be preserved in HTML, what do I need to replace with <br/> in the recordset?
     
    aa, Apr 21, 2004
    #1
    1. Advertising

  2. aa

    Mevlut Guest

    aa wrote:
    > In a database of I have text splited into new lined by pressing ENTER,
    > and wanted these new lines be preserved in HTML, what do I need to
    > replace with <br/> in the recordset?


    str = Replace(str, chr(13) & chr(10), "<br />")
     
    Mevlut, Apr 21, 2004
    #2
    1. Advertising

  3. aa

    aa Guest

    Thanks, that's what I needed
    "Mevlut" <> wrote in message
    news:40866396$0$21804$4all.nl...
    >
    >
    > aa wrote:
    > > In a database of I have text splited into new lined by pressing ENTER,
    > > and wanted these new lines be preserved in HTML, what do I need to
    > > replace with <br/> in the recordset?

    >
    > str = Replace(str, chr(13) & chr(10), "<br />")
    >
     
    aa, Apr 21, 2004
    #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. Dave Tichenor
    Replies:
    3
    Views:
    32,185
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. Andrew
    Replies:
    6
    Views:
    3,589
    Andrew
    Dec 9, 2003
  3. Replies:
    2
    Views:
    3,562
  4. OutlookNewbieDev

    carriage return and line feed characters are lost when passed in p

    OutlookNewbieDev, Oct 28, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    173
    OutlookNewbieDev
    Oct 28, 2005
  5. Steve Anderson
    Replies:
    3
    Views:
    265
    Steve Anderson
    Jun 21, 2004
Loading...

Share This Page