mk9
12-14-2005, 10:47 AM
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("" & TM_counter & "")
End if
if(TM_PageEndCount <> rsSearchResult_total) then Response.Write(" - ")
next
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("" & TM_counter & "")
End if
if(TM_PageEndCount <> rsSearchResult_total) then Response.Write(" - ")
next