Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What does the "EnableViewState" property do? Why would I want it on or off?
What does the "EnableViewState" property do? Why would I want it on or off?
✍: Guest
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 (as in the datagrid example in tip #4), 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.
2014-01-17, 1695👍, 0💬
Popular Posts:
How can I check for HTML errors? HTML validators check HTML documents against a formal definition of...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
Enable ASP.NET polling using “web.config” file Now that all our database side is configured in order...
.NET INTERVIEW QUESTIONS - What is Suspend and Resume in Threading ? It is Similar to Sleep and Inte...
How do you handle change request? Normally change request are handled by preparing an Impact analysi...