top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What does the "EnableViewState" property do? Why would I want it on or off?

0 votes
51 views
What does the "EnableViewState" property do? Why would I want it on or off?
posted Sep 14, 2015 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

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 ed 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.

answer Sep 15, 2015 by Shivaranjini
Similar Questions
0 votes

In an app there is a floating icon of download. I just want, when I open that page icon should come in screen with bouncing effect. App supporting api version > 8.

Please help.

+1 vote

If an Employee class is present and its objects are added in an arrayList.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...