williamsba
Programmer
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 ("ADODB.Recordset"
rs.Open "Personnel", "DSN=TOManning"
Response.Write "<table cellspacing=2 border =1 align=center>"
Response.Write "<tr>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b>SSN</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Rank</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Last Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> First Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Middle Initial</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Clearance</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Unit Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Service</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Is Officer</b></font></td>"
Response.Write "</tr>"
While Not rs.EOF
Response.Write "<tr>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("SSN" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("RANK_DESC" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("LNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("FNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("MID_INITIAL" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("CLEARANCE" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("UNITNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("SERVICE" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("IsOFFICER" & "<br>"
Response.Write "</td>"
Response.Write "<br>"
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...
<% Response.buffer = true %>
<HTML>
<HEAD>
<TITLE>Personnel</TITLE>
</HEAD>
<BODY>
<% Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset"
rs.Open "Personnel", "DSN=TOManning"
Response.Write "<table cellspacing=2 border =1 align=center>"
Response.Write "<tr>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b>SSN</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Rank</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Last Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> First Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Middle Initial</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Clearance</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Unit Name</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Service</b></font></td>"
Response.Write "<td bgcolor=""navy""><font color=""white""><b> Is Officer</b></font></td>"
Response.Write "</tr>"
While Not rs.EOF
Response.Write "<tr>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("SSN" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("RANK_DESC" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("LNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("FNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("MID_INITIAL" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("CLEARANCE" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("UNITNAME" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("SERVICE" & "<br>"
Response.Write "</td>"
Response.Write "<td bgcolor=""#FFEBCD"">"
Response.Write rs("IsOFFICER" & "<br>"
Response.Write "</td>"
Response.Write "<br>"
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...