Saturday, August 30, 2008

ViewState Chunking in ASP.NET

ASP.NET 2.0 introduces the ViewState Chunking mechanism. This means that if your ViewState is too large then it will be broken into small chunks. The reason behind this feature is that many firewalls and proxies does not accept the huge ViewState sizes.
You can set the MaxPageStateFieldLength property in the web.config section. The property represents the number of bytes. By default the value is -1 which means no chunking.

ASP.Net Feeds