View Full Version : formatting memo fields in ASP

29-04-2002, 04:34 PM
can anyone help me with this problem?

I have memo fields in my database that are formatted correctly, but when i display these fields in my web page (using ASP) they are displayed without linebreaks etc and are not formatted correctly.

Is there any code etc that can solve this problem?

02-05-2002, 02:43 PM
If you're using ASP/VBScript, the quickest and easiest way to preserve your linefeeds is to use the replace function.


memofield = replace(memofield, vbCRLF, '<br>')

As for other formatting like bold, underline, font, size, etc it's a tad more dfficult.