function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
professor1.3959036044711594E12professor1.3959036044711594E12 

why View state in visualforce page? what is the main advantage of it.

PratikPratik (Salesforce Developers) 
Hi,


Here is the Salesforce documentation on View state, it will help you to undersatnd purpose of view sate and other detais too.

https://developer.salesforce.com/page/An_Introduction_to_Visualforce_View_State


Please refer to this:
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AlyH

Thanks,
Pratik
Darshan FarswanDarshan Farswan
Hi

View state in VF page basically holds the state of the page. It helps us maintain the values stored in the page form and all the variables. Its is mainly used when you need the interaction between the page and the controller. For more information, please go through the following link :
https://developer.salesforce.com/page/An_Introduction_to_Visualforce_View_State

Thanks
Darshan