Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now