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 are the asp.net 2.0 features?
What are the ways to sending the data in ASP.NET page?
How may clustered index we can create in table?
Describe paging in asp.net?
Is there any limit for query string? Means what is the maximum size?
What are strong names?
What is postback in asp net?
Difference between application events and session events
Explain the difference between debug.write and trace.write?
What do you mean by authorization?
Who is using asp.net?
Explain about asp.net caching?
What is cross page posting? How is it done?
Explain repository pattern in asp.net mvc? : asp.net mvc
How ASP and ASP.NET page works? Explain about asp.net page life cycle?