Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to do pagining like we see in any mail account..?

eg previous page 1 2 3 4 5 6 next last page
Posted

1 solution

The obvious way is to write a controller that puts a page number on the URL, then render the current page, and a list of links for the number of pages that exist.
 
Share this answer
 
Comments
Rohit1207 3-Jan-13 1:41am    
is there any jquery for paggining....christian sir.if yes how to use that
Christian Graus 3-Jan-13 1:45am    
I love all the people who think jquery is black magic. No, jquery runs on the client. You want to get a total # of pages and the data for one page, on the server.
Rohit1207 3-Jan-13 2:01am    
thnx i luv jquery method....can u explain me repository in mvc 4.
Christian Graus 3-Jan-13 4:05am    
I didn't use the word, but it means where your data lives. It is agnostic to MVC4, excepting that you could use Entity Framework as a layer to access it ( which is often used with MVC4, but not part of it )
fjdiewornncalwe 3-Jan-13 16:31pm    
+5.

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