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.
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.
You have 'n' number of server controls, do you need all 'n' numbers to be server controls and not just plain HTML?
Say you really need all 'n' of them, do all of them need to have viewstate enabled?
Here is one good article (if you haven't already read) which provides more insights: VIEWSTATE size minimization