Solved

problem with table and ASP

Posted on 1998-01-21
2
216 Views
Last Modified: 2013-12-25
I show a list of people in a table with an ASP page. Now If the name van the person is "Van Damme" the name is shown in to lines (in the same cell) like this:
Van
Damme
And everwher there's a space in a field, the field is spread over multiple line's. What's wrong?
Underneath you can find my code (I think this is only the usefull part)

<%Conn.Open "IntraPersoneel"%>
<%Set RS = Conn.Execute("SELECT Naam,Voornaam,Lokaal,InternTel FROM personen ORDER BY personen.naam")
%>

<table border="0" width="90%">
    <tr>
        <td width="40" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Naam</b></font></td>
        <td width="30" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Voornaam</b></font></td>
        <td width="17" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Lokaal</b></font></td>
        <td width="13" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Tel.Nr.</b></font></td>
    </tr>
   <% Do While Not RS.EOF %>
    <tr>
        <td width="40" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Naam")%></font></td>
        <td width="30" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Voornaam")%></font></td>
        <td width="17" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Lokaal")%></font></td>
        <td width="13" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("InternTel")%></font></td>
    </tr>
    <font face="Optimum"><%RS.MoveNext
Loop
RS.Close
Conn.Close
%></font>
</table>
0
Comment
Question by:item
2 Comments
 
LVL 12

Accepted Solution

by:
Otta earned 100 total points
Comment Utility
In each <TD> entry,
specify the WIDTH= as a percentage.
Sometimes, your text is "too wide",
so it is automatically "flowed" to
the next "row" inside the cell.

Or, on the <TABLE> entry,
specify the WIDTH= in "absolute" units,
i.e., at least the sum of the widths
of your cells.
0
 
LVL 1

Author Comment

by:item
Comment Utility
Thanx, I 've seen it also, But I got always a server time wen I wanted to delete the question. Altough, I give you the points!


0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

771 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

9 Experts available now in Live!

Get 1:1 Help Now