Hi Guys
I have asp pages which i page through with a next and previous link.
eg:
PREV : NEXT
I recently added code to allow me to see page numbers as well:
eg:
PREV 34567 NEXT
My code is
<%
For I = 1 To TotPage
If I = CPage Then
response.write I
Else%>
<a href="search.asp?CurrentPage=<%=I%>"><%=I%></a>
<%
End If
Next 'I
%>
all i am passing over the querystring is the current page number. To add the possible values that could be passed to the querystring on this link would be messy.
I basically want to pass the querystring on the present page (being viewed) to the querystring on this link in the loop.
However using the server.urlencode method i end up with 2 currentPage values, and so the page wont be called.
Can i just pass the existing querystring onto this new one, while dropping one of the querystring values?
Thax
Dave

I have asp pages which i page through with a next and previous link.
eg:
PREV : NEXT
I recently added code to allow me to see page numbers as well:
eg:
PREV 34567 NEXT
My code is
<%
For I = 1 To TotPage
If I = CPage Then
response.write I
Else%>
<a href="search.asp?CurrentPage=<%=I%>"><%=I%></a>
<%
End If
Next 'I
%>
all i am passing over the querystring is the current page number. To add the possible values that could be passed to the querystring on this link would be messy.
I basically want to pass the querystring on the present page (being viewed) to the querystring on this link in the loop.
However using the server.urlencode method i end up with 2 currentPage values, and so the page wont be called.
Can i just pass the existing querystring onto this new one, while dropping one of the querystring values?
Thax
Dave