Custom Paging in Datagrid-Pagecount is always 1

A

anon

Hi All,
tried implementing the custom paging solution from 4 guys from
rolla...however the pagecount in my implementation always returns one,
so the postback gives an error asying"CurrentPageIndex should be >=0 and
less thn pagecount....the database has more than 5 rows(5 being the page
size)...
i m stuck with this and dont know how to proceed,,,,any help is
appreciated...heres the link,,,to the article...
http://www.4guysfromrolla.com/webtech/code/CustPaging.aspx.html

Select arg
Case "next":
If (Pubs.CurrentPageIndex < (Pubs.PageCount - 1)) Then
Pubs.CurrentPageIndex += 1
End If

this is the part where my app gets stuck and does not go to next
page....
thanks
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top