Hi,
I have an query that brings back 2 and a half thousand records, it takes AGES to write all these results to the screen. Is there some way of say bringing back 20 results at a time?
The code for the result set brought back is:
<table border="0" cellSpacing="0" cellPadding="0" width="100%">
<thead>
<tr height="28"><td class="header" COLSPAN="4" style="font-size: 18">Contracts</td></tr>
<tr height="12">
<td style="width: 100">Contract</td>
<td>Description</td>
<td style="width: 40">Year</td>
<td style="width: 80">Agent</td>
</tr>
</thead>
<% dim oRS, i
set oRS = OpenDBQuery("Select top 250 * From Contract"
i=0
while not oRS.EOF %>
<tr class="TR<%=((i mod 2)+1)%>" style="height: 17px"
onClick="window.location.href='Test2.asp?Contract=<%=Server.URLEncode(oRS.Fields("bindno")%>&Year=<%=oRS.Fields("bindyr"%>'"
onMouseOver="Javascript:SelectionHoverOver(this,true);"
onMouseOut="Javascript:SelectionHoverOut(this,<%=((i mod 2)+1)%>);">
<td><%=oRS.Fields("bindno"%></td>
<td><%=oRS.Fields("binddesc"%></td>
<td><%=oRS.Fields("bindyr"%></td>
<td><%=oRS.Fields("Agent"%></td>
</tr>
<% i=i+1
oRS.MoveNext
wend
oRS.close
set oRS = nothing
%>
</table>
Can anyone help?????
Thanks
Julie
I have an query that brings back 2 and a half thousand records, it takes AGES to write all these results to the screen. Is there some way of say bringing back 20 results at a time?
The code for the result set brought back is:
<table border="0" cellSpacing="0" cellPadding="0" width="100%">
<thead>
<tr height="28"><td class="header" COLSPAN="4" style="font-size: 18">Contracts</td></tr>
<tr height="12">
<td style="width: 100">Contract</td>
<td>Description</td>
<td style="width: 40">Year</td>
<td style="width: 80">Agent</td>
</tr>
</thead>
<% dim oRS, i
set oRS = OpenDBQuery("Select top 250 * From Contract"
i=0
while not oRS.EOF %>
<tr class="TR<%=((i mod 2)+1)%>" style="height: 17px"
onClick="window.location.href='Test2.asp?Contract=<%=Server.URLEncode(oRS.Fields("bindno")%>&Year=<%=oRS.Fields("bindyr"%>'"
onMouseOver="Javascript:SelectionHoverOver(this,true);"
onMouseOut="Javascript:SelectionHoverOut(this,<%=((i mod 2)+1)%>);">
<td><%=oRS.Fields("bindno"%></td>
<td><%=oRS.Fields("binddesc"%></td>
<td><%=oRS.Fields("bindyr"%></td>
<td><%=oRS.Fields("Agent"%></td>
</tr>
<% i=i+1
oRS.MoveNext
wend
oRS.close
set oRS = nothing
%>
</table>
Can anyone help?????
Thanks
Julie