What does the "EnableViewState" property do? Why would I
want it on or off?
Answers were Sorted based on User's Feedback
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 |
Answer / 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 |
Tell something about state management in asp.net?
Which type of state management is provided by Query String in ASP.NET?
0 Answers Sans Pareil IT Services,
how to get the vb6.0 COM Component in to the .Net application?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
Can we have multiple web config files for an asp.net application?
what is NET Framework ?
What are Caching techniques in .NET
Which is better php or asp.net?
Can you explain architecture of your project ?
What are the events in a page life cycle?
what is silverlight and what is the purpose of silverlight?
How to Insert a TextBox value in to Sql database using C# coding?
17 Answers HCL, Sona, TCS,