Results 1 to 2 of 2

Thread: ASP - Displaying The Contents OF A Memo Field

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Exclamation

    Hi,
    I'm planning on creating a web that will allow different
    users to submit their codes. These codes will be stored in a Memo Field. The problem that I'm having is that when ever I display the contents of the Memo Field it
    Jumbles up every thing. How can I display the contents of
    the Memo field in the same way (format) in which it was enter by the users. A very good example is this Bulletin
    Board.

    Any Suggestions??
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Two options

    (1)
    Simple way is this

    Memotext = replace(Memotext, vbcrlf, "<BR>")

    html isn't recognising the carrage returns.


    (2)
    Better way, like this site I assume is have a tag like [ code ] and a "VBtext-> html coloured_code" activex dll (I have one somewhere) then have the asp file use method 1 for normal text and the createobject on the dll for code text.

    I've been meaning to do this too but I don't have an NT server with static IP for a server. I have something similar on the intranet though.
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

Posting Permissions

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



Click Here to Expand Forum to Full Width