top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is the lifespan for items stored in ViewState?

+2 votes
What is the lifespan for items stored in ViewState?
posted Nov 10, 2014 by Manikandan J

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

Items stored in the ViewState exist for the life of the current page.
This includes postbacks (to the same page).

answer Nov 11, 2014 by Roshan
0 votes

It maintains the controls status during the round trip.
Example take yahoo registration you fill the all the details you missed one mandatory field after that you click the submit button. Registration it will retain all the control data. You have it enter what ever you missed mandatory data. If you will not maintain view state. You have to enter all the details
view state life time is with the page only. If you move the another page view state will expire.

answer Nov 11, 2014 by Vinitha
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.