Use the following method:
Previous Next
1 2 3 4 5 6 7 8 9 10
and only put 20 to 50 per page. (do this in asp and it will automatically
create your pages for you)
Example:
If request.querystring("page") = "" Then
pageno = 1
Else
pageno = request.querystring("page")
End If
'Number of pages 50
rs.pagesize = 50
totalpages = CInt(rs.pagecount)
'which page to work with
rs.absolutepage = pageno
If totalpages > 1 Then
'forward/next buttons
response.write"<tr><td>"
'see wether to write a previous
If pageno > 1 Then
response.write "<A href=flyer.asp?page=" & pageno - 1 &
">Previous</a> "
End If
'see if we're not at the last page!
If int(pageno) < int(totalpages) Then
response.write "<A href=flyer.asp?page=" & pageno + 1 & ">Next</a> "
End If
response.write("<BR>")
'do the page numbers
For A = 1 To totalpages
'check to see if it is the current page - write in red if it is
If Int(A) = Int(pageno) Then
Response.write "<font color=red>" & A & "</font> "
Else
Response.write "<A href=flyer.asp?page=" & A & ">" & A & "</font></a> "
End If
Next
response.write"</tr></td>"
End If
x=0
'now display the records
For x = 1 To 50
If rs.EOF Then
'we're at the end of the recordset so exit..
Exit For
--
Regards,
Carroll
"JP SIngh" <no**@none.com> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
I have three dropdowns in one of my asp page. Each dropdown does return a
huge amount of records , 5000 to be precise.
The huge amount of data makes the page slower to load and also makes it
extermly diffcult for users to choose one value from the list.
Does someone have a better solution to implement this?
I guess one of the things that I am keen on is to have a textbox
(readonly) and a pop up window to allow users to search for a particular product and
then clicking the found product closes the pop up windwo and adds the
selected product value to the textbox.
Does anyone know how to transfer the value of the selected product to the
textbox on the main form.
Regards