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.