开发者

How to limit transmition of ViewState during ajax call

开发者 https://www.devze.com 2023-01-28 16:18 出处:网络
Is i开发者_C百科t possible to get viewstate only for related controls of update panel in asp.net ajax framework. I know that the browser sends all the viewstate during post back, even if we dont need

Is i开发者_C百科t possible to get viewstate only for related controls of update panel in asp.net ajax framework. I know that the browser sends all the viewstate during post back, even if we dont need the whole viewstate for ajax calls.


no its not possible. this is how asp.net ajax works. you should probably use jquery ajax instead


Have a look at this excellent case study of Codeplex, which also used UpdatePanel and suffered from bloated ViewState.

http://encosia.com/2008/12/03/have-you-ever-wondered-why-codeplex-is-so-slow/

0

精彩评论

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

关注公众号