darktown
10-12-2004, 09:51 AM
Hi,
the main idea : select information from a table and show it.
I have done an include of top.aspx
top.aspx is a file where my top banner & left menu are put in.
<HTML>
<HEAD>
<title>top</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
<script type="text/javascript" language="JavaScript">
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<table width="90%" height ="100%" cellspacing="0" cellpadding="0" align="center">
<tr width="100%" align ="center">
<!-- Show hostname & other options -->
<td class="small" align="left"> </td>
<td class="small">Your Machinename : <% response.write(session("Hostname"))%>| |Succesfully Logged in as :<% response.write(session("Username"))%></td>
<td class="small" align="right"><% response.write(session("IP")) %></td>
</tr> <!-- End first row -->
<tr>
<td width="120" align="left" valign ="top"><!-- Left Menu Here -->
<br/>
<!-- Information:-->
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="26" class="itemHeader">Information</td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=profile'> ×My
Profile</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=member'> ×MemberList</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=staff'> ×Staff</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=recruitment'>
×Recruitment</a></td>
</tr>
</table>
<br/>
<!-- General:-->
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="26" class="itemHeader">General</td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=history'> ×History</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=links'> ×Links</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=linkus'> ×Link Us?</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=contact'> ×Contact</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=forum'> ×Forum</a></td>
</tr>
</table>
<br/>
<!-- Media:-->
<table border="1" cellpadding="0" cellspacing="0">
</table>
<br/>
</td> <!-- End Left Menu: -->
<td valign="top"> <!-- Main Start Here: -->
afterwards in my vb code i do a select of my data and i want it to appear in my body of the page. but everytime my data appears above my <html> tag.
query = "select * from tbluserinformation order by Username"
If connOK = True Then
scmd.CommandText = query
scmd.Connection = myConnection
sdr = scmd.ExecuteReader()
Response.Write("<table width='100%'>")
While sdr.Read
bday = Split(sdr.GetString(6), "-")
birthday = bday(2) & "-" & bday(1) & "-" & bday(0)
Response.Write("<tr><td>'" & sdr.GetString(1) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(2) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(3) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(4) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(5) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(7) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(8) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(9) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(10) & "'</td></tr>")
Response.Write("<tr><td>'" & birthday & "'</td></tr>")
End While
Response.Write("</table>")
sdr.Close()
End If
My Question : how to make my data appear in the body of the page instead of totally on top?
I also include a bottum.aspx (i close my tables correctly and so..)
the main idea : select information from a table and show it.
I have done an include of top.aspx
top.aspx is a file where my top banner & left menu are put in.
<HTML>
<HEAD>
<title>top</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
<script type="text/javascript" language="JavaScript">
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<table width="90%" height ="100%" cellspacing="0" cellpadding="0" align="center">
<tr width="100%" align ="center">
<!-- Show hostname & other options -->
<td class="small" align="left"> </td>
<td class="small">Your Machinename : <% response.write(session("Hostname"))%>| |Succesfully Logged in as :<% response.write(session("Username"))%></td>
<td class="small" align="right"><% response.write(session("IP")) %></td>
</tr> <!-- End first row -->
<tr>
<td width="120" align="left" valign ="top"><!-- Left Menu Here -->
<br/>
<!-- Information:-->
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="26" class="itemHeader">Information</td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=profile'> ×My
Profile</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=member'> ×MemberList</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=staff'> ×Staff</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='information.aspx?topic=recruitment'>
×Recruitment</a></td>
</tr>
</table>
<br/>
<!-- General:-->
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="26" class="itemHeader">General</td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=history'> ×History</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=links'> ×Links</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=linkus'> ×Link Us?</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=contact'> ×Contact</a></td>
</tr>
<tr>
<td width="120" class="menu"><a href='general.aspx?topic=forum'> ×Forum</a></td>
</tr>
</table>
<br/>
<!-- Media:-->
<table border="1" cellpadding="0" cellspacing="0">
</table>
<br/>
</td> <!-- End Left Menu: -->
<td valign="top"> <!-- Main Start Here: -->
afterwards in my vb code i do a select of my data and i want it to appear in my body of the page. but everytime my data appears above my <html> tag.
query = "select * from tbluserinformation order by Username"
If connOK = True Then
scmd.CommandText = query
scmd.Connection = myConnection
sdr = scmd.ExecuteReader()
Response.Write("<table width='100%'>")
While sdr.Read
bday = Split(sdr.GetString(6), "-")
birthday = bday(2) & "-" & bday(1) & "-" & bday(0)
Response.Write("<tr><td>'" & sdr.GetString(1) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(2) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(3) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(4) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(5) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(7) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(8) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(9) & "'</td></tr>")
Response.Write("<tr><td>'" & sdr.GetString(10) & "'</td></tr>")
Response.Write("<tr><td>'" & birthday & "'</td></tr>")
End While
Response.Write("</table>")
sdr.Close()
End If
My Question : how to make my data appear in the body of the page instead of totally on top?
I also include a bottum.aspx (i close my tables correctly and so..)