Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having trouble pulling info into table...

Status
Not open for further replies.

williamsba

Programmer
Aug 3, 2000
57
US
I am making a ASP page pulling information off of a access database table. I got the information to display in my table on my page, but for some reason the table is at the bottom of the page. You have to scroll down to see the whole thing. There are no spaces before this table and I cant figure out why it is doing this. Here is my code...

<% Response.buffer = true %>
<HTML>
<HEAD>
<TITLE>Personnel</TITLE>
</HEAD>
<BODY>
<% Dim rs
Set rs = Server.CreateObject (&quot;ADODB.Recordset&quot;)
rs.Open &quot;Personnel&quot;, &quot;DSN=TOManning&quot;
Response.Write &quot;<table cellspacing=2 border =1 align=center>&quot;
Response.Write &quot;<tr>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b>SSN</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Rank</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Last Name</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> First Name</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Middle Initial</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Clearance</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Unit Name</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Service</b></font></td>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;navy&quot;&quot;><font color=&quot;&quot;white&quot;&quot;><b> Is Officer</b></font></td>&quot;
Response.Write &quot;</tr>&quot;

While Not rs.EOF

Response.Write &quot;<tr>&quot;
Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;SSN&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;RANK_DESC&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;LNAME&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;FNAME&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;MID_INITIAL&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;CLEARANCE&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;UNITNAME&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;SERVICE&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<td bgcolor=&quot;&quot;#FFEBCD&quot;&quot;>&quot;
Response.Write rs(&quot;IsOFFICER&quot;) & &quot;<br>&quot;
Response.Write &quot;</td>&quot;

Response.Write &quot;<br>&quot;
rs.MoveNext

Wend

rs.Close
Set rs = Nothing %>
</table>
</body>
</html>


As you can tell I am new to making ASP pages so this is probably a easy answer. Any help at all would be greatly appreciated.

Thank you...
 
Not sure if this is the problem, but the last <BR> is inside the table, but not in a cell.
 
Ok Im a idiot, haha, that did it, Thanks for the Help Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top