Solved

problem with table and ASP

Posted on 1998-01-21
2
226 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
[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 12

Accepted Solution

by:
Otta earned 100 total points
ID: 1856556
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
ID: 1856557
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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