How to implement paging as given in screenshot in AJAX call

Posted by Sukhjeevan under ASP.NET AJAX on 8/4/2014 | Points: 10 | Views : 1337 | Status : [Member] | Replies : 1
I have to implement paging in a list which I'm getting via AJAX call as shown in following link(screen shot contains only paging):
http://i.stack.imgur.com/95TbM.png

I'm using Entity Framework approach for data access from database.
So I just need trick to fetch record in EF.

How to implement such type of paging through AJAX?

Thanks




Responses

Posted by: Sheonarayan on: 8/4/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Sukhjeevan,

You can use code specified in this post http://www.dotnetfunda.com/codes/show/874/custom-paging-using-linq to perform pagination using Entity Framework LINQ.

I would also recommend you to learn several other article written on Pagination on DotNetFunda.com http://www.dotnetfunda.com/articles/search.aspx?q=pagination

This one is video tutorials that will help you to understand easily on how to do custom pagination http://www.dotnetfunda.com/videos/show/170/how-to-do-custom-pagination-in-listview

The screen shot you have given is similar to PagedList plug in, read its implementation in LINQ here in ASP.NET MVC http://www.dotnetfunda.com/articles/show/2620/pagination-in-aspnet-mvc-4

Hope this will help.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sukhjeevan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response