策略降低asp.net的ViewState大小 [英] Strategies for reducing ViewState size in asp.net

查看:139
本文介绍了策略降低asp.net的ViewState大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的网页服务器控件的'N'号。现在我到性能优化和我已经注意到,我的的ViewState 太大,它使我的网页很慢。

I use 'n' number of server controls in my page. Now I am into performance tuning and I've noticed that my ViewState is too large and it makes my page slow.

我知道的ViewState 尺寸可以融为一体$ P $由Gzip已pssed。任何其他建议减少的ViewState 在asp.net中。我不想因为我的Web应用程序共享服务器托管在IIS做。

I know ViewState size can be compressed by Gzip. Any other suggestions for reducing ViewState in asp.net. I don't want to do in IIS because my web application is hosted on a shared server.

推荐答案

假设视图状态的大小是缓慢的主要原因,我想建议你从一个更全面的方法解决它。

Assuming the size of viewstate is the main cause of the 'slowness', I would like to suggestion you tackle it from a more holistic approach.

您的服务器控件的'N'号,你需要所有的'N'号是服务器控件,而不仅仅是普通的HTML?

You have 'n' number of server controls, do you need all 'n' numbers to be server controls and not just plain HTML?

假设你真的需要所有'N'他们,做他们都需要启用ViewState的?

Say you really need all 'n' of them, do all of them need to have viewstate enabled?

这里有一个很好的文章(如果您尚未阅读),它提供了更多的见解:
VIEWSTATE尺寸最小化

Here is one good article (if you haven't already read) which provides more insights: VIEWSTATE size minimization

这篇关于策略降低asp.net的ViewState大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆