It can be said that when the page is closed with viewsate, the access speed of the page will be improved. I tried it today and found a strange phenomenon. Let's talk about it here.
Share it.
Viewstate, however, allows us to add the variables to be passed to viewstate as we use session to save the information to be retained.
When we add enableviewstate = "false" to the instructions on the page, the viewstate defined on the CS page in the background will be ineffective,
It is worth noting that not only viewstate defined by ourselves cannot be used, but the value of some controls disappears after page sending.
For example, the dropdownlist control is used. When enableviewstate = "false" is returned, the value in dropdownlist cannot be obtained.
In some Web controls, after the autopostback attribute is enabled, the previous values of the control can still be saved after the page is sent back, that is, the viewstate
This feature.
A small detail, hoping to help some friends who need it.