The view state of a web page is composed of all the data that's necessary to maintain the state of the controller during server requests (like sending or receiving data). Since the view state contributes to the overall size of your page, performance of a page can depend on efficiently managing the view state. The View State tab in the development mode footer provides information about the view state of your Visualforce page as it interacts with Salesforce.
- Minimize number of form on a page. Use apex:actionRegion instead of using 2 or more forms.
- Refine your SOQL to only retrieve the data needed by the page.
- All public and private data members present in Standard, Custom and Controller extensions are saved.
- The transient variables are not passed to view state and therefore not stored in View State.
Check the below link for enabling View State