开发者

How to improve page loading delays?

I am using gridview control of .net framework 4.0. My list contains 1000 of rows which i am bindi开发者_高级运维ng to a gridview on each postback. Hence, My page is taking time to load I want to speed up the system. Is there any other control available which can enhance the performance or is there any other way to achieve this? What all i want is faster performance


You might be able to use faster controls, such as the Repeater, but it depends on what feature you really need. Are you only displaying the data or is it editable?

With such a large amount of data you can look at optimizing what HTML you use for rendering, as you may be able to split the page size by half...


First step should be to do a preformance check to find out what exacly is slow. Check where in the code things take time, it could be one of many things.
1) If the control uses javascript, perhaps the users are on a old version of their browser with a slow javascript engine.
2) Perhaps the issue is bandwidth?
3) Perhaps its missing SQL index
and on it goes.

Dont guess at what is wrong, find out for sure what is taking the time, and solve then one at the time.

Like Forgotten Semicolon suggested loading via Ajax might be solution, it would give the user a better idea what is going on.

Other then that i would would heavly suggest caching if posible, you can use the built in Cache options to cache the datatable.


In addition to the point about not binding on every postback, I am assuming the datasource is an SQL database. You should probably check to see how fast the query runs. Make sure you have properly indexed your tables.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜