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

Define repository pattern in asp.net mvc? : asp.net mvc

996


What is the file extension of web service?

998


What are the advantages of asp.net mvc framework? : asp.net mvc

1024


What is the difference between client-side and server-side validations in webpages?

1021


How do you use viewstate?

1005


What is http session state?

976


How can we identify that the Page is Post Back?

987


What is the difference between c# and .net?

1047


8. Why do you want to work here?

1926


What is the part of url?

984


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

1027


What are demand-paging and pre-paging?

995


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

1161


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

989


What is a master page and what does it do?

928