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 can you dynamically add user controls to a page?

970


Explain how asp.net different from asp?

1111


To wrap up a call to a Web service the standard used is..?

986


What is & in a url?

966


What is the difference between asp.net and mvc?

1126


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1841


What is mvc in angular?

986


How many types cache in asp net?

1091


Explain the advantages of passport authentication.

928


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

2161


How can you make sure that web api returns json data only?

989


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2373


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

987


What parameters can you pass in the url of the api?

1119


How asp.net mvc differs from asp.net web forms? : asp.net mvc

1110