Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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