473,657 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1595

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...@gmai l.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********@gmai l.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********@gmai l.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
2421
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 something=45678&somethingelse=12345>blah</tagname>\r\n<tag2>stuff</tag2>"; and my regex code is like:
1
9154
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 linebreak in the regex? I know how to do begin line/end line but that only works in non-singleline mode right? i.e. if I have:
4
7233
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 line, with the newline just appearing as a square. If I do the same with a richtextbox, it looks correct. Do the two handle UTF-8 strings differently? -Ben
2
2408
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; document.getElementById(x).value=y.toLowerCase(); }
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.