473,382 Members | 1,705 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,382 software developers and data experts.

CRLF How does it work for asp.net???!!

Hi All,

Im trying to have a few strings presented in a LABEL. However the CRLF is
not working.

eg str = str1 + crlf + str2 + crlf + str3
label.text= str

Do i need to declare the crlf as a public constant with chrw(10) +
chrw(13)?? cause this does nothing either

Can some one tell me how to resolve this issue?

Thanks
MP
Nov 18 '05 #1
2 2266
"Michael Persaud" <mi**************@hotmail.com> wrote in
news:OA**************@tk2msftngp13.phx.gbl:
Hi All,

Im trying to have a few strings presented in a LABEL. However
the CRLF is not working.

eg str = str1 + crlf + str2 + crlf + str3
label.text= str

Do i need to declare the crlf as a public constant with chrw(10)
+ chrw(13)?? cause this does nothing either

Can some one tell me how to resolve this issue?


Michael,

The label control generates HTML. Use <BR> instead of a carriage
return/linefeed:

label.Text = str1 + "<BR>" + str2 + "<BR>" + str3;

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 18 '05 #2
Hi Chris
Thanks it works

Didnt thing about the output being in HTML.

Thanks again

Michael

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Michael Persaud" <mi**************@hotmail.com> wrote in
news:OA**************@tk2msftngp13.phx.gbl:
Hi All,

Im trying to have a few strings presented in a LABEL. However
the CRLF is not working.

eg str = str1 + crlf + str2 + crlf + str3
label.text= str

Do i need to declare the crlf as a public constant with chrw(10)
+ chrw(13)?? cause this does nothing either

Can some one tell me how to resolve this issue?


Michael,

The label control generates HTML. Use <BR> instead of a carriage
return/linefeed:

label.Text = str1 + "<BR>" + str2 + "<BR>" + str3;

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/

Nov 18 '05 #3

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

Similar topics

4
by: McKirahan | last post by:
How would I use a regular expression to remove all trailing Carriage Returns and Line Feeds (%0D%0A) from a textarea's value? Thanks in advance. Also, are they any great references for learning...
5
by: McKirahan | last post by:
I'd like to use regular expressions to remove extraneous Carriage Return Line Feeds (CrLf) from a textarea before the form is submitted. I'd like to remove all trailing CrLf's and convert all...
3
by: Jon | last post by:
Hi... I'm getting stumped over the something that MUST be simple...basically, I'm trying to replace the characters 0D0A with a crlf, using Regex.Replace(). The problem is, the replaced string...
1
by: Jack Wright | last post by:
Dear All, In a multiline field if I enter the following way: Mangesh Anant Kodilkar There is a carriage return after each word. Now when I press save,it loses the CRLF characters. This is not...
2
by: Andrew | last post by:
Hello. I am working with very large files in my .NET project (1 million plus records). Some of these files do not have crlf's, which makes it very hard to read the file without a layout or record...
0
by: Tomas | last post by:
When I use a __doPostBack to submit a page to the server the last textbox on the page always contains a CRLF. I've used HttpRequest.SaveAs to dump the entire request (IIS 6) to disk and the body of...
9
by: amyl | last post by:
I have an application that is reading data from text files to the first occurrence of a double crlf. I have this working using streamreader and using readline. However, I am hitting 500+ files...
2
by: alf | last post by:
Hi, according to rfc2046, line breaks in MIME are CRLF. However python just uses LF like in the following example: from email.MIMEMultipart import MIMEMultipart from email.MIMEText import...
1
by: Vic Spainhower | last post by:
Hello, I am exporting a table from MS Access which is then imported into a MySQL table. I am using a TransferText command in Access to export the data to a TAB delimeted file. Then using the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.