Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys,
I have an query in implementing Pagedlist in mvc. I have an webapi which takes input parameters pageno and pagesize and returns me the result.
so, how should I implement paging in mvc using only the particular result returned by API ? Since I have the total COUNT of records of the table and records required for particular pageno.
I was not able to show paging on view. because I got only a particular page data.
How should I implement this scenario?

Any help appreciated..

What I have tried:

PagedList in MVC and webapi 
Posted
Updated 22-Feb-17 20:44pm
Comments
Graeme_Grant 23-Feb-17 2:39am    
What have you tried so far? Please post your code by clicking on the Improve question and explain where you are stuck.

Google search is your friend: c# paging data[^]

It's not clear if the data is static or stored in a DB. So I will take a calculated guess ... A quick Google Search using the above query turned up this gem: Tutorial 25: Efficiently Paging Through Large Amounts of Data[^]
 
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