Preserve linebreaks in multiline textbox

M

mikejacobz

Hi, I have a multi-line textbox where a person can enter information
and this information is then emailed to a person.

How do I preserve linefeeds from both the textbox and then use them in
the email given that the email is going to be in plain text format??

thanks in advance
Markus
 
B

benjamin.soulier

Hello Markus,

I think just getting Text property from your multi line checkbox, and
then doing a String.Replace on it replacing html carrier return
("<br>") by real carrier return would do the job ;

Hope this helps,

Ben.
 
B

bruce barker

usually the user does not enter the linefeeds. you should wrap at 64
chars in code. paragraphs should be 2 lf's (which they usually enter)
 
M

mikejacobz

Thanks, I'll give it a shot
Cheers!

bruce said:
usually the user does not enter the linefeeds. you should wrap at 64
chars in code. paragraphs should be 2 lf's (which they usually enter)
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top