Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a request to go to a specific page of a repeater list in c#. Anyone have an example of how to do that? I have Next> Prev> Last etc standard pagaing. But never seen a way go to say you have 21 pages I want page 14? Next> Prev> <last> Goto[14]? Thanks

What I have tried:

Nothing yet just looking for an example not sure where to start. I have a pgm with standard repeater logic for paging. Any one got any snippets or full examples?
Posted
Updated 19-Apr-23 8:59am
Comments
[no name] 19-Apr-23 14:37pm    
It's just math: how many items on a page; how many pages away is item n. (n % page size). Or, item n = page size * page requested.

1 solution

The Repeater is not a paging control. All it does is render items with a specified format.

You have to supply the paging functionality yourself or bind the control to a source that supports paging.

Google for "C# repeater paging" for examples and discussions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900