suggestions to decrease viewstate size

wessamzeidan

Junior Contributor
Joined
Dec 8, 2002
Messages
379
Location
Lebanon
I've been working on an asp.net project for over 2 months now. I was working on my local machine, so I never cared about the size of the page. But lately I started checking the viewstate of my pages, and, they were big. The smallest was about 8KB. Some reached to about 100KB.......

Any suggestions or ideas on how to reduce the size of the viewstate....

Thanks
 
Set EnableViewState to False on any control that does not need it, if the control is populated on each postBack wheather from cache or DB then you don't need the viewstate.
Don't go crazy and disable all of them in one shot, do it by section and unit test each occurance.
 
Back
Top