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
How to implement form based authentication in asp.net application?
What I need to create and run an asp.net application?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
Where sessions are stored in asp.net?
Explain a program using razor view engine to create a simple application? : asp.net mvc
What is virtual directory in asp.net?
How to bind all the binding controls in a page at once in ASP.NET?
What is content place holder?
How to implement Authentication and Authorization?
Why we go for mvc instead of asp.net? : Asp.Net MVC
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What are the data controls available in asp.net?
Describe the events in the life cycle of a web application.
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
Is it possible for me to change my aspx file extension to some other name?