I want to know what is lifespan for item stored in ViewState.
Thank you.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted May 23, 2012, 9:40 AM EDT
When a new page is requested, the ViewState of the previous page will be gone.
Satyapriya NayakRank #47 · 31.5K reputationPosted May 23, 2012, 10:01 AM EDT
Item stored in ViewState exist for the life of the current page. This includes postbacks (to the same page).
Thanks