What does the "EnableViewState" property do? Why would I
want it on or off?

Answer Posted / ganesh

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.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you handle exceptions in asp.net?

564


How we implement web farm and web garden concept in asp.net?

541


What is the advantage of mvc over asp.net? : Asp.Net MVC

509


How you can access the properties and controls of master pages from content pages?

513


How can you handle unmanaged code exceptions in asp.net?

552






How use Xml data in ASP.net?

563


When cookie will expire?

587


Describe SOA and the tenets of it?

561


Can you explain page lifecycle in net?

510


Where session id is stored?

537


Why the javascript validation not run on the asp.net button but run successfully on the html button?

552


What are session and cookies?

536


What are the different types of sessions in asp.net?

493


What are the new login controls in asp.net 2.0?

523


Which class is used to send an email message from an ASP.NET Web page?

548