Does anyone know any tricks for reducing the size of the ViewState?
Kind regards
BenBen,
The question is on the vague side. Turn on tracing, see what's using
viewstate and see if you can make it work without. if your page doesn't
postback, you can turn viewstate off at the page level.
Check out Scott Guthrie's deck on performance
http://scottgu.com/PerformanceEurope.zip it touches briefly on viewstate.
A nice compression module can help mitigate the performance issues around
round-triping large viewstate
(http://www.blowery.org/code/HttpCompressionModule.html)
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Ben Fidge" <ben.fidge@.btopenworld.com> wrote in message
news:eDfhURSFFHA.3384@.tk2msftngp13.phx.gbl...
> Does anyone know any tricks for reducing the size of the ViewState?
> Kind regards
> Ben
>
>
Thanks Karl,
I'll have a look.
Ben
"Karl Seguin" <karl REMOVE @. REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uw8zKdSFFHA.464@.TK2MSFTNGP15.phx.gbl...
> Ben,
> The question is on the vague side. Turn on tracing, see what's using
> viewstate and see if you can make it work without. if your page doesn't
> postback, you can turn viewstate off at the page level.
> Check out Scott Guthrie's deck on performance
> http://scottgu.com/PerformanceEurope.zip it touches briefly on viewstate.
> A nice compression module can help mitigate the performance issues around
> round-triping large viewstate
> (http://www.blowery.org/code/HttpCompressionModule.html)
> Karl
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
> "Ben Fidge" <ben.fidge@.btopenworld.com> wrote in message
> news:eDfhURSFFHA.3384@.tk2msftngp13.phx.gbl...
>
Things that will considerably reduce your viewstate size :-
1) Disable viewstate for those controls that are going to get populated
everytime a page loads.
2) Disable viewstate for the page if the page does not postback to itself.
3) Viewstate can store a type that either is serializable or has a
TypeConverter defined for it can be persisted in ViewState. However, types
that are only serializable are slower and generate a much LARGER ViewState.
Hence reduce the number of only serializable types.
Best of Luck
"Ben Fidge" wrote:
> Does anyone know any tricks for reducing the size of the ViewState?
> Kind regards
> Ben
>
>
hey one more site to help you with compressing the viewstate.
http://www.mostlylucid.co.uk/archiv.../01/03/694.aspx
"Shaun" wrote:
> Things that will considerably reduce your viewstate size :-
> 1) Disable viewstate for those controls that are going to get populated
> everytime a page loads.
> 2) Disable viewstate for the page if the page does not postback to itself.
> 3) Viewstate can store a type that either is serializable or has a
> TypeConverter defined for it can be persisted in ViewState. However, types
> that are only serializable are slower and generate a much LARGER ViewState
.
> Hence reduce the number of only serializable types.
>
> Best of Luck
>
> "Ben Fidge" wrote:
>
Friday, March 16, 2012
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment