Forums
This topic is locked
Index Page Not Working
Posted 14 Dec 2005 14:06:25
1
has voted
14 Dec 2005 14:06:25 James Bishop posted:
I have a page counter that will not work properly.When searching for an item, the page counter shows at the bottom of the page showing how many pages there are with the result. Something like this, (Page 1 - 2 - 3). When you click on to page 2 or 3, the results dont show on the following pages although I know that there are more results to be shown. Any ideas?
TM_counter = 0
For i = 1 to rsSearchResult_total Step MM_size
TM_counter = TM_counter + 1
TM_PageEndCount = i + MM_size - 1
if TM_PageEndCount > rsSearchResult_total Then TM_PageEndCount = rsSearchResult_total
if i <> MM_offset + 1 then
Response.Write("<a href=""" & Request.ServerVariables("URL" & "?" & MM_keepMove & "offset=" & i-1 & """>"
Response.Write(TM_counter & "</a>"
else
Response.Write("<b>" & TM_counter & "</b>"
End if
if(TM_PageEndCount <> rsSearchResult_total) then Response.Write(" - "
next