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

Carriage Return in Web.config file?

Hi there,
I am reading a string from a web.config file and displaying
it in a label on an .ASPX page. I want a carriage return in the string so
that it looks right, but can't get it to put one in.. I have tried using \n
and e.t.c. in the config file setting but none of those produce a
carraige return in the output. Is this possible?
Jun 27 '08 #1
4 2674
"Waldy" <so*****@microsoft.comwrote in message
news:ez**************@TK2MSFTNGP03.phx.gbl...
I am reading a string from a web.config file and displaying it in a label
on an .ASPX page. I want a carriage return in the string so that it looks
right, but can't get it to put one in.. I have tried using \n and
e.t.c. in the config file setting but none of those produce a carraige
return in the output. Is this possible?
<br />
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:Op**************@TK2MSFTNGP03.phx.gbl...
<br />

Hi Mark,
I've tried that, but it doesn't work. It crashes the
application if you just enter <br/in the web.config file and if you escape
the less than / greater than characters, it just comes out as <br/in the
text.
Jun 27 '08 #3
On May 30, 10:26 am, "Waldy" <some...@microsoft.comwrote:
"Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote in messagenews:Op**************@TK2MSFTNGP03.phx.gbl. ..

Hi Mark,
I've tried that, but it doesn't work. It crashes the
application if you just enter <br/in the web.config file and if you escape
the less than / greater than characters, it just comes out as <br/in the
text.
Try a Literal instead of a Label.
Jun 27 '08 #4

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:Op**************@TK2MSFTNGP03.phx.gbl...
<br />
Mark,
you were right. I realised that I was using a span directly
rather than an asp:label to render a span. If you set the label text it
does process the <brand render a new line.
Jun 27 '08 #5

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

Similar topics

4
by: Dr. Laurence Leff | last post by:
I am writing a Java program to read in XML file, modify some elements slightly, and then write it out. That XML file is prepared in Docbook. It works fine, except that it is disturbing the...
12
by: Nimmy | last post by:
Hi, I have a data file and I want to remove Carriage returns. Any one has any C code/program which does this? I am working on Windows XP machine.....I don't have access to UNIX machine. But I...
6
by: Laura D | last post by:
How can I identify a carriage return in C++? \r, \f, \0, \n, \t does not work. I have also tried !isprint(ch), iscntrl(ch), isspace(ch), etc....with no luck! I even poked around in the MSDN and...
3
by: Dinsdale | last post by:
I have an xml file that is read into an object using serialization. One of the objects has a string field called delimeter that I want to contain a carriage return. Instead of trying to include the...
5
by: Detlev808 | last post by:
Hello, I am attempting to write an awesome perl script. Before it can do anything useful, it must first be able to read in a file, and write out a file (Note: I am NOT talking about text files)....
0
by: thelane | last post by:
I am parsing an xml file with the DOM api and it is reading my carriage returns. When I try to output the values from the xml to a flat file, it is going on to a new line because of the carriage...
2
by: polohero | last post by:
I am using an FtpClient.cs that someone else created and when I'm uploading (it uses a Socket) a file a carriage return is getting deleted when the file appears on the ftp location. Normally this...
11
by: evenlater | last post by:
My db allows the user to send email via CDO. The body of the email is determined in code. I have built an email form with To, CC and Subject lines and a large text box for the body of the message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.