Skip to content
Advertisement

Tag: pagination

efficient way to implement paging

Should I use LINQ’s Skip() and Take() method for paging, or implement my own paging with a SQL query? Which is most efficient? Why would I choose one over the other? I’m using SQL Server 2008, ASP.NET MVC and LINQ. Answer Trying to give you a brief answer to your doubt, if you execute the skip(n).take(m) methods on linq (with

Keep pagination repeatable if change operations are performed

If one wants to paginate results from a data source that supports pagination we have to go to a process of: defining the page size – that is the number of results to show per page; fetch each page requested by the user using an offset = page number (0 based) * page size show the results of the fetched

Advertisement