# ASP : Paging, really stumped

**URL:** <https://forum.kirupa.com/t/asp-paging-really-stumped/151208>\
**Category:** programming\
**Created:** [June 14, 2005, 3:17am UTC](https://forum.kirupa.com/t/asp-paging-really-stumped/151208 "2005-06-14T03:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinkumrocks](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dinkumrocks](https://forum.kirupa.com/u/dinkumrocks)\
**Post date:** [June 14, 2005, 3:17am UTC](https://forum.kirupa.com/t/asp-paging-really-stumped/151208/1 "2005-06-14T03:17:01Z")

</div>

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

```auto
<%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.
