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 / kumar saurabh

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, since you will wipe out any re-populated data in any case. 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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is form submit?

897


What is the use of session state and application state and difference between them?

867


What is base class of .net?

914


What is the difference between a candidate key and primary key?

966


Is it possible to migrate visual interdev design-time controls to asp.net?

1002


What do you mean by role-based security?

944


What are httphandlers and httpmodules and difference between them?

955


What is the base class from which web forms are inherited?

950


What are the built-in objects in asp.net?

955


What is the default timeout for a cookie?

1010


how to include timer or counting time to display next page in asp.net

2099


What are the advantages of passport authentication?

958


Write a code for passing ArrayList in Web API?

1487


Which protocol is used in a web api?

1052


Can I tap into other windows livetm services?

935