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 7913835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:56:08+00:00 2026-06-03T13:56:08+00:00

I did a task which geting more than 2 millions record from sqlserver and

  • 0

I did a task which geting more than 2 millions record from sqlserver and populate them in Asp.net GridView.

The problem is that, query taking more than 2 minutes in getting record while my query is now fully optimized.

when i move from one page to another by pagination it take again same time and hit server.

so i need a solution where its not take time during page movement or get only 50 or 100 record in each request.

Thanks,
Nauman

  • 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-03T13:56:09+00:00Added an answer on June 3, 2026 at 1:56 pm

    Use paging in GridView – check this link

    Also adjust display property like display header with available visible cells to load the grid faster.
    Its even better if you bind the grid data using jQuery and not from server side.

    Use this link to get started

    Instead of using GridView you can use repeater or even jQuery templates also with custom paging. that’ll be even more fast.

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

Sidebar

Related Questions

I have some task which I want to schedule and I did not work
Did some searches here & on the 'net and haven't found a good answer
Did anyone tried to customize the window in which the quicktime is playing video?
When I compile my solution I get 2 errors which I did not get
I was given a task, it's nothing special but I did hit the wall
My task Create a UserControl which should be able to contain any visual child
I had an pre-interview task, which I have completed and the solution works, however
I did picked csv-enumerator package for parsing large amount of CSV files task. Input
I have two classes - Task (which implements Comparable) and DeadlinedTask (where DeadlinedTask extends
I'm working on a task which I never worked in earlier. Task: Monitor a

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.