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 / swapna

Enable ViewState turns on the automatic state management
feature that enables server controls to re-populate their
values on a round trip without requiring you to write any
code.

This feature is not free however, since the state of a
control is passed to and from the server in a hidden form
field.

You should be aware of when ViewState is helping you and
when it is not. For example, if you are binding a control
to data on every round trip, then you do not need the
control to maintain it's view state.

ViewState is enabled for all server controls by default. To
disable it, set the EnableViewState property of the control
to false.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long do session variables last?

906


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1997


What are sessions used for?

949


How can exception be handled with out the use of try catch?

955


How can I configure asp.net applications that are running on a remote machine?

1004


Define cookie.

938


How is it possible for .NET to support many languages?

671


what cut off mark for po's,what questions they asked for interview?

1803


Which control has default post back is enabled(true)?

1016


What is caching in asp.net?

968


What r the asp.net list controls and diff. Between them?

931


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

968


What are the different types of validation controls provided in ASP.NET?

1121


To get the values in two different controls to match which control you use it?

1002


Explain how cookies work. Give an example of cookie abuse.

1057