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

How to implement form based authentication in asp.net application?

1096


What I need to create and run an asp.net application?

957


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

903


Where sessions are stored in asp.net?

986


Explain a program using razor view engine to create a simple application? : asp.net mvc

996


What is virtual directory in asp.net?

1028


How to bind all the binding controls in a page at once in ASP.NET?

956


What is content place holder?

948


How to implement Authentication and Authorization?

1046


Why we go for mvc instead of asp.net? : Asp.Net MVC

1038


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

1010


What are the data controls available in asp.net?

943


Describe the events in the life cycle of a web application.

1067


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

991


Is it possible for me to change my aspx file extension to some other name?

992