view state

  • Thread starter Thread starter Vikas Kumar
  • Start date Start date
V

Vikas Kumar

view state is saved on server or on client side
like it is used in postbacks and finally in encrypted form saved on client
side
but is it also on server side
 
It is saved by server side in the output html page and that is how it comes
back in postbacks.

Eliyahu
 
Hi Vikas,

Thank you for post!

ViewState is used to track and restore the state values of controls that
would otherwise be lost, either because those values do not post with the
form or because they are not in the page html.

ViewState is saved before rendering in the
Page.SavePageStateToPersistenceMedium method and it is restored on
PostBacks in the Page.LoadPageStateFromPersistenceMedium method.

ViewState is maintained as a hidden field in the Page. On the server side,
you can just use ViewState["keyname"] to access individual states.

For more information, you can take a look at following article:

#ASP.NET State Management Recommendations
http://msdn2.microsoft.com/en-us/library/z1hkazw7.aspx

If there's anything unclear, please feel free to post here.


Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top