What is the best way to save view state on server?
Is it a good idea to use a WCF service to save the view state on the server?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are we talking about ASP.NET view state? Why do you need WCF to store view state on the server? ASP.NET provides its own methods to store view state on the server:
You can override
SavePageStateToPersistenceMediumandLoadPageStateFromPersistenceMediumon yourPage.You can override
PageStatePersisterproperty of yourPage(or in customPageAdapter). This property by default returnsHiddenFieldPageStatePersisterbut you can change it toSessionPageStatePersisteror implement customPageStatePersister. Here you can read about PageStatePersisters.