i have an .asp page which executes a SQL query. Everything is working fine with the sql and the returned recordset. Now, I am trying to display the recordset 1000 rows at a time. My goal is to display the first 1000 rows, then add some buttons (depending on how many records returned) so user can click on it to load the rest. I can add those buttons dynamically as the page is loaded. The problem I have is loading the rest of the rows.
here's what i have:
'count is the # of buttons
<% sub display(pageNo)
'some response.write to display 1000 rows
%>
<% sub main
call display 'to display 1st 1000 rows by default
do while i <= count
<input type="button" name="cmdDisplay" value="<% =count %>" onClick="display(<%=count%>)">
i = i + 1
loop
...%>
No matter which button I click, nothing happens!!
HELP PLEASE!!!
here's what i have:
'count is the # of buttons
<% sub display(pageNo)
'some response.write to display 1000 rows
%>
<% sub main
call display 'to display 1st 1000 rows by default
do while i <= count
<input type="button" name="cmdDisplay" value="<% =count %>" onClick="display(<%=count%>)">
i = i + 1
loop
...%>
No matter which button I click, nothing happens!!
HELP PLEASE!!!