Solved

How can I code a response.write line so the text doesn't wrap?

Posted on 2011-02-15
2
393 Views
Last Modified: 2012-05-11
In my ASP project, I don't want the text doesn't wrap on certain response.write line. Can this be done, so the results from "item1" are on one line, "item 2" on another, etc. etc.?

Here is the code:
 Response.Write "<td>" & rsprojects.Fields("Item1") & ", " & rsprojects.Fields("Item2") & ", " & rsprojects.Fields("Item3") &", " & rsprojects.Fields("Item4") &"</td>"

Suggestions on how, if possible, to code this line.

<b>The results for this field would look like this:</b>

This information for "Item 1" in line 1.
Information from "Item 2" second line.
Item 3 here.
Item 4 here.

Open in new window

0
Comment
Question by:kfranck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 500 total points
ID: 34903553
Can't you just insert <br> tags instead of commas?  Also, I'm assuming this is going to be inside a <table>, hence the <td> tag.

Response.Write "<td>" & rsprojects.Fields("Item1") & "<br>" & rsprojects.Fields("Item2") & "<br>" & rsprojects.Fields("Item3") &"<br>" & rsprojects.Fields("Item4") &"</td>"

Open in new window

0
 

Author Closing Comment

by:kfranck
ID: 34903626
Perfect! Just what I needed. Thanks.
kfranck
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question