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

What is the maximum number of classes that can be contained in one dll file?

1196


What are sharepoint pages?

892


Why cyclomatic complexity is important?

1013


List some of the important session state modes of asp.net.

971


How does session state work in asp.net?

1005


What is semantic gap?

1003


Explain About WebService

1114


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6600


What is the equivalent of date() and time() in asp.net?

968


Is it possible to change the index of primary key on table?

862


Are xaml file compiled or built on runtime?

941


Does asp.net still recognize the global.asa file?

1082


How to disable disable browser's Back button in asp.net (JavaScript)?

1112


how to transfer the file from client to server using asp.net

1094


How many languages are supported by .NET at present time?

758