You need to sign in to do that
Don't have an account?

How can i achieve this.. View state Error...?
Even though i am using "Transient" Key word VF page shows an Error "Maximum view state size limit (135KB) exceeded". Then what do i have to do.? How can i rectify this error.?
If you are making use of a Visualforce Page, make use of html tags more than apex tags. (If you find that 'Internal' element in view state is occupying more memory). For the controller, make use as less variables as possible. As in if you are using 2 lists in which each contains thousands of same records, try to change your logic such that you make use of a map which altogether there would be thousand records instead of 2000 records.
Hi Ganesh,
Viewstate is like the memory used to store the Current Field Values on the Current Visualforce Page.
See the links below to understand the best practices,
http://wiki.developerforce.com/page/An_Introduction_to_Visualforce_View_State
http://www.salesforce.com/us/developer/docs/pages/Content/pages_best_practices_performance.htm
http://www.salesforce.com/docs/en/cce/salesforce_visualforce_best_practices/salesforce_visualforce_best_practices.pdf
Regards,
Ashish