Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:45:50+00:00 2026-06-06T04:45:50+00:00

I am creating MVC3 Site and using pagination (using PagedList;) in that to display

  • 0

I am creating MVC3 Site and using pagination (using PagedList;) in that to display bunch of data. I have a stored procedure which gets more than 2000 rows per call.

I have used AJAX with JQUERY to retrieve data ($.ajax call in jquery) and doing pagination on retrieved data in controller. So I am getting back 2000 data rows from a stored procedure and doing pagination on them in the controller and show 10 rows of data. But when I click on “Next” / “previous” links, controller calls the same stored procedure again and retrieves another 2000 rows and in controller based on pagenumber it displays data. So every time it fetches 2000 rows.

I am not using any wrapper class here. Calling stored procedure directly from controller.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:45:51+00:00Added an answer on June 6, 2026 at 4:45 am

    You will have to modify the stored procedure so that it takes the current page number and the number of records to return as parameters. This way the pagination will be done directly on the SQL Server which is the only correct way to do pagination if you are concerned about efficiency as it avoids you from fetching all the records from the database and slicing them on the client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently creating an MVC3 application using Ninject. I have two controllers which
Creating MVC3 Razor Helper like Helper.BeginForm() says that it can be done using extension
I'm creating a website in C# using MVC3. The website is a client that
I am creating an ASP.NET MVC3 application using NHIBERNATE. I have a base class
I have a MVC3 site which needs users to be able to login in
I'm creating a MVC3 web site, and I have place in the page where
I am creating application in MVC3. I have a ConferenceController which has a Create()
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating
I have an MVC3 site that I've setup for testing another site - most
Using MVC3, I am creating a generic partial view which takes an IList as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.