ASP Programming Question:
Download Job Interview Questions and Answers PDF
What does the "EnableViewState" property do? Why would I want it on or off?
Answer:
It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate.
Download ASP Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the lifespan for items stored in ViewState? | What are the different types of Session state management options available with ASP.NET? |