Adding Memofields with CR

Results 1 to 2 of 2

Thread: Adding Memofields with CR

  1. #1
    Join Date
    Dec 1969

    Default Adding Memofields with CR

    When I add data into a memofield in a record via a form, and display the field with ASP then all the carrage returns are gone. Probably because ASP converts it to clean HTML text. How can I keep the Cr&#039;s?<BR><BR>Greetz,<BR>Dan

  2. #2
    Join Date
    Dec 1969

    Default Come on man....

    HTML ignores whitespace. So the carriage return is ignored when displayed. If you do a View Source, then it&#039;ll be there. It&#039;s just not being interpreted.<BR><BR>However, the tag for a carraige return in HTML is &#060;br/&#062;.<BR><BR>So...<BR><BR>&#060;%<BR>myString = Replace(myString, vbcrlf, "&#060;br/&#062;")<BR>%&#062;<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts