Lifespan for items stored in ViewState - ASP.NET

What is the lifespan for items stored in ViewState?

- Items stored in the ViewState exist for the life of the current page.
- This includes postbacks (to the same page).
- The viewstate is designed to store the value only for the current page.
- It serialize and deserialize whenever the data is stored and retrieved.
- The items in ViewState are stored in the hidden control on client side and the value are persisted across the postback.
- The view state is maintained only for the current page.
- If the data is to be maintained then it has to persist across the pages then use the SessionState, ApplicationState or database.
Purpose of EnableViewState property - ASP.NET
ASP.NET - Purpose of EnableViewState property - It allows the page to save the users input on a form across postbacks.....
How to implement delegates in ASP.NET
ASP.NET - How to implement delegates in ASP.NET - Delegates provide the functionality behind events...
What are Classes? - .NET
.NET What are Classes? - Classes are the blueprints for objects....
Post your comment