473,473 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Display multiple lines

Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple
lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable.
Is there an easier way to display the data?

Thanks,
Joe
Jul 19 '05 #1
14 2474
Joe,

Here is a sample of html output.

<html>
<head>
<title></title>
</head>
<style>
..info
{
width: 150px;
}
</style>
<body>
<span class='info'>
This is where your text needs to go. Just set the width in the info class of
the style.
</span>
</body>
</html>
-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #2
Thanks for the help. Unfortunately, the display is still on a single line. I
have included some snippets of the code:

<html>
<style>
..info
{
width: 300px;
}
</style><body bgcolor=#ffffff>
..
..
Work Requested / Problem Condition<br>
<span class='info'><%= strWorkReq %><br></span>
Services Performed<br>
<span class='info'><%= strServicePerf %><br>
</span>

Does this look correct?

Thanks for any help.

Joe
"dlbjr" <dl***@imlost.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Joe,

Here is a sample of html output.

<html>
<head>
<title></title>
</head>
<style>
.info
{
width: 150px;
}
</style>
<body>
<span class='info'>
This is where your text needs to go. Just set the width in the info class of the style.
</span>
</body>
</html>
-dlbjr

Discerning resolutions for the alms

Jul 19 '05 #3
><%= Replace(strWorkReq,vbCrlf,"<br>") %><


"JStrauss" <su**@strausselec.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks for the help. Unfortunately, the display is still on a single line. I have included some snippets of the code:

<html>
<style>
.info
{
width: 300px;
}
</style><body bgcolor=#ffffff>
.
.
Work Requested / Problem Condition<br>
<span class='info'><%= strWorkReq %><br></span>
Services Performed<br>
<span class='info'><%= strServicePerf %><br>
</span>

Does this look correct?

Thanks for any help.

Joe
"dlbjr" <dl***@imlost.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Joe,

Here is a sample of html output.

<html>
<head>
<title></title>
</head>
<style>
.info
{
width: 150px;
}
</style>
<body>
<span class='info'>
This is where your text needs to go. Just set the width in the info
class of
the style.
</span>
</body>
</html>
-dlbjr

Discerning resolutions for the alms


Jul 19 '05 #4
http://www.aspfaq.com/2188

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable.
Is there an easier way to display the data?

Thanks,
Joe

Jul 19 '05 #5
Still no change.

Joe

"John" <n o b o d y@spam.com> wrote in message
news:cQ**********************@phobos.telenet-ops.be...
<%= Replace(strWorkReq,vbCrlf,"<br>") %><

"JStrauss" <su**@strausselec.com> schreef in bericht
news:%2****************@TK2MSFTNGP11.phx.gbl...
Thanks for the help. Unfortunately, the display is still on a single

line. I
have included some snippets of the code:

<html>
<style>
.info
{
width: 300px;
}
</style><body bgcolor=#ffffff>
.
.
Work Requested / Problem Condition<br>
<span class='info'><%= strWorkReq %><br></span>
Services Performed<br>
<span class='info'><%= strServicePerf %><br>
</span>

Does this look correct?

Thanks for any help.

Joe
"dlbjr" <dl***@imlost.com> wrote in message
news:eR**************@tk2msftngp13.phx.gbl...
Joe,

Here is a sample of html output.

<html>
<head>
<title></title>
</head>
<style>
.info
{
width: 150px;
}
</style>
<body>
<span class='info'>
This is where your text needs to go. Just set the width in the info

class
of
the style.
</span>
</body>
</html>
-dlbjr

Discerning resolutions for the alms



Jul 19 '05 #6
Did you look at http://www.aspfaq.com/2188 ?

Which, among other things, recommends using chr(10) because your comment
area does not necessarily include correct vbCrLf pairs.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Still no change.

Jul 19 '05 #7
No change from this tip either.

Joe

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:es*************@TK2MSFTNGP10.phx.gbl...
http://www.aspfaq.com/2188

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data

(multiple
lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable. Is there an easier way to display the data?

Thanks,
Joe


Jul 19 '05 #8
Then you're going to have to show us exactly what is going into the
database, so we know what characters are assumed to be carriage returns but
probably aren't.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:eF**************@TK2MSFTNGP11.phx.gbl...
No change from this tip either.

Joe

Jul 19 '05 #9
"JStrauss" <su**@strausselec.com> wrote in message news:<er**************@TK2MSFTNGP09.phx.gbl>...
Hello,
Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple
lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable.
Is there an easier way to display the data?


It's not "obviously", because that's not the default behavior of HTML.
HTML always wraps, unless you specify otherwise. Is the data in a
table? If so, you probably have the "nowrap" flag turned on. If it's
not in a table, are you using the preformatted markup tag? Perhaps
you're using a style sheet which turns NOWRAP on for all table cells.
Jul 19 '05 #10
<html>
<style>
..info
{
width: 300px;
}
</style>
<body bgcolor=#ffffff>

Work Requested / Problem Condition
<br>
<span class='info'><%= strWorkReq %></span>
<br>
Services Performed
<br>
<span class='info'><%= strServicePerf %></span>
<br>
dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #11
Sounds like a browser version / vendor issue.

--
dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #12
Aaron,
Thanks for your comments. The data is collected in a ASP form "textarea"
field (with wrap=physical) and stored in a vbscript variable when the form
is submitted. The data is then displayed in an HTML form. There is no
database involved. When the data is input into the first form, the lines
wrap automatically in the textarea box. I have not seen any carriage return
or line feed characters in the text (but I may be missing them), and have
also tries several replace statements to change vbcrlf and &nbsp to html
acceptable characters. If I manually put a hard return in the data entry
form, the second form formats the display correctly, but that method is less
than friendly.

Here are a few snippets...
Data collection process:
<TABLE BORDER=0>
<tr><td>Work Requested / Problem Condition</td><td><TEXTAREA NAME="WorkReq"
COLS=40 ROWS=3 WRAP=Physical></TEXTAREA></td></tr>
<tr><td>Services Performed</td><td><TEXTAREA NAME="ServicePerf" COLS=40
ROWS=6 WRAP=Physical></TEXTAREA></td></tr>
</TABLE>

Data display process:
<html>
<style>
..info
{
width: 300px;
}
</style>
....
....
Work Requested / Problem Condition<br>
<span class='info'><%= Replace(strWorkReq,vbCrlf,"<br>") %></span>
<br>

Thanks for looking at this. I appreciate the help.

Joe

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Then you're going to have to show us exactly what is going into the
database, so we know what characters are assumed to be carriage returns but probably aren't.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:eF**************@TK2MSFTNGP11.phx.gbl...
No change from this tip either.

Joe


Jul 19 '05 #13
Aaron,
I looked at this article, even though I am not using a database with this
application. I have tried searching the string variable for occurrences of
chr(10), chr(13) and vbcrlf. I can't find any occurrence of any of these
characters in the string. My assumption is that the textarea input field is
not putting any of this characters in the string, so I might have to write a
small function to manually break the lines into some number of characters.

It shouldn't be this difficult.....

Thanks,
Joe

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Did you look at http://www.aspfaq.com/2188 ?

Which, among other things, recommends using chr(10) because your comment
area does not necessarily include correct vbCrLf pairs.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Still no change.


Jul 19 '05 #14
Did you try using a table instead of a span?

I can't reproduce your problem, anyway. Maybe you could show us a URL where
this is happening. Maybe it's only happening in your own browser?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl...
Aaron,
I looked at this article, even though I am not using a database with this
application. I have tried searching the string variable for occurrences of
chr(10), chr(13) and vbcrlf. I can't find any occurrence of any of these
characters in the string. My assumption is that the textarea input field is not putting any of this characters in the string, so I might have to write a small function to manually break the lines into some number of characters.

It shouldn't be this difficult.....

Thanks,
Joe

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Did you look at http://www.aspfaq.com/2188 ?

Which, among other things, recommends using chr(10) because your comment
area does not necessarily include correct vbCrLf pairs.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"JStrauss" <su**@strausselec.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Still no change.



Jul 19 '05 #15

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

Similar topics

3
by: Joe Christl | last post by:
I was wondering - is there some part of sql that can display text? I wanted to add simple instruictions to the beginning of an sql script so the user understands what they're entering into the...
1
by: ryang | last post by:
Hi, I am trying to randomly select a element in a DOM tree, use the OuterXml property for XmlElement to display the XML content of the element and its children. However, XmlElement.OuterXml...
17
by: kimimaro | last post by:
How do you limits employee display where you enter the department for all the employee within that department be displayed and if lets say they are 100 or so and you have to limits 10 employee per...
0
by: michael | last post by:
Hi all, i want to know how to display multiple lines in one crystal report chart in asp.net i wrote some codes but it always display 2 lines in separate chart(please refer to the codes...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
9
by: Jack | last post by:
To whom may concern: In Asp.Net Calender control, how to display 5 lines if there are only 5 lines in one month? Now there are 6 lines even that I don't show the data in other months. ...
5
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
5
by: GH | last post by:
Is it possible to display images on the desktop itself, like the bacground but not as a background? And not as icons either. Anything you put in the \Desktop folder shows up as an icon on the...
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.