?
Solved

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

Posted on 2011-02-15
2
Medium Priority
?
394 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

765 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