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 |
Which class provides methods that can be used to manage role membership to be used in user authorization?
can i use two web.config files of ConnectionString in One Default.aspx page
6 Answers Satyam, Verinon Technology Solutions, Wipro,
what is differences between bind and eval?
What is http only cookie?
Descrie about response.buffer and repsonse.flush ?
what is Satellite Assembly?
What are generics? why it is used? architecture of ASP.NET?
7 Answers Path Infotech, Satyam, TCS,
What are the various ways to send content from one page to another?
Define state managenent?Descibe state managenent technique which maintain the information at server site focusing it IDS features and limitations?
Describe state management in asp.net?
Explain difference between friend and protected friend?
how to edit gridview control in asp.net2.0