Solved

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

Posted on 2011-02-15
2
391 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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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 information …
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/…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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