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 maximum number of classes that can be contained in one dll file?
What are sharepoint pages?
Why cyclomatic complexity is important?
List some of the important session state modes of asp.net.
How does session state work in asp.net?
What is semantic gap?
Explain About WebService
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
What is the equivalent of date() and time() in asp.net?
Is it possible to change the index of primary key on table?
Are xaml file compiled or built on runtime?
Does asp.net still recognize the global.asa file?
How to disable disable browser's Back button in asp.net (JavaScript)?
how to transfer the file from client to server using asp.net
How many languages are supported by .NET at present time?