开发者

Increase the performance of asp.net page

开发者 https://www.devze.com 2023-01-29 02:06 出处:网络
We have one page which is about 300 KB after compression of viewstate. It\'s loading very slow. We are using telerik tabstrip. There are 8 user con开发者_运维知识库trols being loaded for this tab. Is

We have one page which is about 300 KB after compression of viewstate. It's loading very slow. We are using telerik tabstrip. There are 8 user con开发者_运维知识库trols being loaded for this tab. Is there anyway we can improve the performance of this page? Any ideas please.

Thanks..


Yes, don't enable viewstate is one approach. Alternatively, you could load each tab on demand, so when the tab is clicked, cause a postback, and show that tab's content (which could be wrapped in a RadAjaxPanel from Telerik).

Lastly, Telerik has a rich web service model; bind the information to the UI via web services when the tab is clicked. This is something we had to do and it worked out very well performance-wise.

HTH.


You can try page level caching - here


In terms of the RadTabStrip itself you could also potentially look into using the Load-on-Demand feature as well, found on this demo page.

As for overall page efficiency if you are using the Telerik RadControls already you could look into using the RadAjax control; particularly the RadAjaxManager. This will allow you set up partial postbacks and get a more efficient page. A demo of this can be found here.


Our of the box use of the telerik tab control is not efficient. Each tab not in use STILL GETS put through the page lifecycle. There isn't anything that you can do about that out of the box, but with a little extra configuration you can gain some efficiency.

For the tab that is to be shown, you can dynamically LoadControl for the UserControl that is to be shown on the selected tab.


Have you enabled RADCOMPRESSION ?

http://www.telerikwatch.com/2009/01/optimization-tips-radcompression-module.html


You could always not use telerik! It creates such a heavy internal dependence on itself with bloated, unnecessarily complex features it makes me want to vomit. Do it yourself for best results...MVC rocks! Or just follow the answers above and get ready for lots of trial and error... :sadface:

0

精彩评论

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

关注公众号