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
In how many ways we can retrieve table records count?
What is base class of .net?
Where is the session stored?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
Is data edited in the Repeater control?
Write a code for sending an email from asp.net application.
What is role-based security in asp.net?
How ViewstateMac works?
What is the difference between CC and BCC?
What is the latest version of asp.net?
What is session and cookies in asp.net?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc
In the Repeater control which way you can edit?
Explain one critical mapping?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?