dinkumrocks
June 14th, 2005, 12:17 AM
I'm putting the finishing touches on this news archive. And i want the users to be able to page through the news articles.
The problem is...... (ex.) When articles 6-10 out of 12 are showing, the next button will not be displayed.
heres some code
<%If intPage > 1 then%>
<a href="default.asp?page=<%=intPage - 1%>">Prev 5</a> | <%end if%><%= countPage + 1%> - <%= countPageBig%> of <%= RS.RecordCount%>
HERES THE WHERE THE ERROR OCCURS
<%If intPage < intPageCount then%> | <a href="default.asp?page=<%=intPage + 1%>">Next 5</a><%end if%>
the Prev button works fine.
You can see the problem at www.dinkumrocks.com/news (http://www.dinkumrocks.com/news)
Im kinda stumped
-Naaman
Edit://if you change the querystring to ?page=3 it works fine.
The problem is...... (ex.) When articles 6-10 out of 12 are showing, the next button will not be displayed.
heres some code
<%If intPage > 1 then%>
<a href="default.asp?page=<%=intPage - 1%>">Prev 5</a> | <%end if%><%= countPage + 1%> - <%= countPageBig%> of <%= RS.RecordCount%>
HERES THE WHERE THE ERROR OCCURS
<%If intPage < intPageCount then%> | <a href="default.asp?page=<%=intPage + 1%>">Next 5</a><%end if%>
the Prev button works fine.
You can see the problem at www.dinkumrocks.com/news (http://www.dinkumrocks.com/news)
Im kinda stumped
-Naaman
Edit://if you change the querystring to ?page=3 it works fine.