473,810 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ 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 2500
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.c om> wrote in message
news:eR******** ******@tk2msftn gp13.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(strWork Req,vbCrlf,"<br >") %><


"JStrauss" <su**@straussel ec.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP11.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.c om> wrote in message
news:eR******** ******@tk2msftn gp13.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**@straussel ec.com> wrote in message
news:er******** ******@TK2MSFTN GP09.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(strWork Req,vbCrlf,"<br >") %><

"JStrauss" <su**@straussel ec.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP11.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.c om> wrote in message
news:eR******** ******@tk2msftn gp13.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**@straussel ec.com> wrote in message
news:eW******** ******@TK2MSFTN GP12.phx.gbl...
Still no change.

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

Joe

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

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


"JStrauss" <su**@straussel ec.com> wrote in message
news:er******** ******@TK2MSFTN GP09.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**@straussel ec.com> wrote in message
news:eF******** ******@TK2MSFTN GP11.phx.gbl...
No change from this tip either.

Joe

Jul 19 '05 #9
"JStrauss" <su**@straussel ec.com> wrote in message news:<er******* *******@TK2MSFT NGP09.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

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

Similar topics

3
11266
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 '&value' entry of the SELECT portion of the script. I know that anything with REM in the beginning is simply ignored. Thanks for your help.
1
2359
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 property returns the XML all in one line. Does anyone know a good class/functions that will take the string returned by XmlElment.OuterXml and format it so I can display it using a edit control's text property in such a way that the XML is displayed...
17
2223
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 page before entering anything to display the next 10 again?
0
1830
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 below), how can i display them in one chart? is there any settings i need to configure?
9
2780
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 wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I have been commissioned to create a web-based application for a client. It has a formsaunthentication...
9
1659
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. Thanks in advance!
5
4455
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 certificate, since it derives System.Web.Services.WebService class, and it's Context.Request.ClientCertificate is a single HttpClientCertificate object, is there a way to receive all the client certificates that is sent in the request? or does IIS...
18
2503
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 to continue work until I understand what I'm doing wrong. http://www.christchurchinfo.net The site displays nicely in Firefox/Mozilla and Safari, but the stained glass windows navigation portion is getting pushed down in IE, and the "news"...
5
1882
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 desktop, but i want to display images directly on the desktop surface. XP / VB.Net --GH
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
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...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
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
9200
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
7664
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
6882
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.