Viewstates should only be used when you need to remember the state of a page between postbacks. It was used to prevent additional access to the database. So, if this is not required for your control, use EnableViewState = False . If nothing on your page needs a viewstate, you can disable the widgets for this page by adding EnableViewState = False to the Page tag.
If your server can afford it, you can transfer data to Sessions . Do this if necessary to ensure security (the viewstate should not contain sensitive data), or if your view contains a large amount of data. Be careful, because Sessions is stored in server memory by default. Thus, you do not want to use this too much with big data if you expect many concurrent users. However, you can change the storage location of the session (i.e., another server).
source share