Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / maloy.adhikari

When a form is submitted in ASP .NET, the form reappears in
the browser window together with all form values. How come?
This is because ASP .NET maintains your ViewState. The
ViewState indicates the status of the page when submitted to
the server. The status is defined through a hidden field
placed on each page with a <form runat="server"> control.
................
Maintaining the ViewState is the default setting for ASP.NET
Web Forms. If you want to NOT maintain the ViewState,
include the directive <%@ Page EnableViewState="false" %> at
the top of an .aspx page or add the attribute
EnableViewState="false" to any control.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of asp.net?

941


Is data edited in the Repeater control?

989


Who can consume WebAPI?

937


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1976


What are the difference between overriding and overloading?

1001


Diff between web user control and web custom control?

912


What does the hotspot class in .net do?

952


Web API supports which protocol?

1326


Where the cookie value is stored?

895


Explain the difference between Web Garden and Web Farm?

949


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

908


Can viewstate be accessed in another page?

969


Explain the difference between debug.write and trace.write? When should each be used?

939


What is server redirect?

943


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

1044