简体   繁体   中英

how to speed up execution on aspx pages with large amount of data into gridview

I'm developing an Asp.net web application.

In that application i need to show a report with three grid-views on a form with a large amount of data.Paging is enabled on all grids.

When user views report first 3-5 times it works fine but after that it takes a lot of time in loading.

I'm storing grid-views data into view state so that i can use this data at paging and sorting.

Can any one tell me what is the problem and how can i solve that problem

You should do following to make it faster.

  1. Paging : Do custom paging instead of standard paging so only page-size amount of data is stored for the current page. It will hugely improve the performance. Please refer Custom Paging.

  2. Also in the page, disable the view-state of controls if not required.

  3. You can also use caching if grid-view data is read-only. Caching

It´s difficult to resolve performance problems without having all information about your code and server.

Can be a concurrence problem?

Are you doing another operations in the web page that reduce performance?

Is your webpage alone in the server or are there other apps that can interfere with yours?

I expect give you some clue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM