473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Preserve linebreaks in multiline textbox

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

Dec 4 '06 #1
3 1589

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.

On 4 déc, 01:36, mikejac...@gmail.com wrote:
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
Dec 4 '06 #2
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)

mi********@gmail.com wrote:
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
Dec 4 '06 #3
Thanks, I'll give it a shot
Cheers!

bruce barker wrote:
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)

mi********@gmail.com wrote:
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
Dec 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: MrNobody | last post by:
I'm trying to do some regex in C# but for some reason linebreaks are causing my regex to not work. the test string goes like this: string ss = "<tagname...
1
by: =?Utf-8?B?TXJOb2JvZHk=?= | last post by:
I want to match some HTML string using Regex but the linebreaks are getting me. Is there a way to just completely ignore linebreaks in my regular expression? If not, how would I specify a...
4
by: =?Utf-8?B?QmVuIFIu?= | last post by:
Hi, I've got a webservice that just returns a string, and in the middle of the string, I use a controlchars.newline. When I set this string to the text property of a textbox, it shows up as one...
2
dj12345
by: dj12345 | last post by:
i have function to make character in lowercase if a text is in uppercase function upperCase(x) { try { var y=document.getElementById(x).value; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.