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
How long do session variables last?
how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly
What are sessions used for?
How can exception be handled with out the use of try catch?
How can I configure asp.net applications that are running on a remote machine?
Define cookie.
How is it possible for .NET to support many languages?
what cut off mark for po's,what questions they asked for interview?
Which control has default post back is enabled(true)?
What is caching in asp.net?
What r the asp.net list controls and diff. Between them?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
What are the different types of validation controls provided in ASP.NET?
To get the values in two different controls to match which control you use it?
Explain how cookies work. Give an example of cookie abuse.