# ASP : Paging, really, really stumped

**URL:** <https://forum.kirupa.com/t/asp-paging-really-really-stumped/153156>\
**Category:** programming\
**Created:** [June 29, 2005, 4:44pm UTC](https://forum.kirupa.com/t/asp-paging-really-really-stumped/153156 "2005-06-29T16:44:04Z")\
**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 29, 2005, 4:44pm UTC](https://forum.kirupa.com/t/asp-paging-really-really-stumped/153156/1 "2005-06-29T16:44:04Z")

</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

```
    Code:
 [left] 

```

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

```

[/left]

the Prev button works fine.

You can see the problem at [www.dinkumrocks.com/news](http://www.dinkumrocks.com/news)

Im kinda stumped  
-Naaman

if you change the querystring to ?page=3 it works fine.
