Solved

problem with table and ASP

Posted on 1998-01-21
2
224 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

785 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