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
What is the full meaning of asp.net?
Explain a program using code nuggets to create a simple application? : asp.net mvc
What are the three parts of an http response?
Define asp.net caching?
Define satellite assemblies.
Define session in asp.net.
Mention the execution process for managed code?
What are the security types in asp.net?
Explain difference between dataset and datareader?
What is the used of "ispostback" property?
How to do state management in ASP.NET?
What is view state management in asp net?
Is asp.net mvc still used? : Asp.Net MVC
What are the file extensions for razor views?
Which authentication uses a combination of windows and iis authentication?