display line break

T

Tony WONG

the input is captured in <textarea>

there are line breaks.

how to display line breaks when using response.write? Thanks a lot.

tony
 
R

RvT

Tony said:
the input is captured in <textarea>

there are line breaks.

how to display line breaks when using response.write? Thanks a lot.

tony

A line break is represented by chr(13), so you have to replace chr(13)
by a <BR />.
 
R

RvT

RvT said:
A line break is represented by chr(13), so you have to replace chr(13)
by a <BR />.

I am not an ASP man, but I believe it is something like Replace(String,
CHR(13), "<br />"), where the string should be the textarea form field.
 
J

jojo

RvT said:
A line break is represented by chr(13), so you have to replace chr(13)
by a <BR />.

You could also put the whole text into a <pre> (unless is's a complete
html-document with <head> and <body> or the input includes any tags
which aren't allowed in a <pre>). Would perhaps be more easy than
replacing all line breaks...
HTH, jojo
 
T

tony wong

Thanks to all guys


jojo said:
You could also put the whole text into a <pre> (unless is's a complete
html-document with <head> and <body> or the input includes any tags which
aren't allowed in a <pre>). Would perhaps be more easy than replacing all
line breaks...
HTH, jojo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top