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

  • Home
  • SEARCH
  • 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 6165573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:11:22+00:00 2026-05-23T22:11:22+00:00

I have a listview on my page that can display 10,000 or more rows.

  • 0

I have a listview on my page that can display 10,000 or more rows.

There’s a simple ‘customer’ drop down on the top of the page that does an auto-postback to change the data filter. I’ve been trying to optimize this routine and I noticed that the majority of the time is spent transferring the ViewState from the client to server.

I’ve added EnableViewState=”false” to the ListView control but it doesn’t change it. I’ve looked at the request in Fiddler and if the customer on screen has say 50 rows, the request content length is low – if they have 10,000 or something it’s huge.

Anyone have a fix?

  • 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-05-23T22:11:23+00:00Added an answer on May 23, 2026 at 10:11 pm

    This is happening because data-bound control (including list view) would store their data-source into the view-state. So view-state will be large cause page size bloat.

    One of the solution is to disable the view-state for list-view and bind it every time page posts back.

    Even better solution is to do data store side paging i.e. if you are showing only 50 rows then fetch only 50 rows from the database. This is typically referred as custom paging in ASP.NET and you can find several examples for custom paging for your data access technology. For example,

    custom paging uing Entity Framework & ObjectDataSource: http://geekswithblogs.net/Frez/articles/using-the-entity-framework-and-the-objectdatasource-custom-paging.aspx

    You can use SQL Server ranking functions to do paging in a stored procedure: http://msdn.microsoft.com/en-us/library/bb445504.aspx

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

Sidebar

Related Questions

I have ListView that uses a GridView to display several columns of data. Two
I have two user controls on the same page. One contains a ListView that
I have a listview that contains values from webservice.Each page contains only 10 listitems
I have a page that can be viewed by list or grid view through
I have a listview , on top of it there is a auto complete
I have a ListView where each item represents a podcast that can run up
I have a ListView that contains a large collection of rows with textboxes that
I have a list of objects that can be seen as a separate page
Suppose I have a ListView displaying exactly 10 rows that is not intended to
I have a ListView on my checkout page with an ItemTemplate which build up

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.