What is the difference between ViewState
and ControlState
in terms of IsPostBack
and how they work?
What is the actual use of ControlState
?
Control state is a new construct within ASP.NET 2.0, and it is really nothing more than view state; however, it is view state with a significant advantage; that advantage is that other developers using your control cannot disable control state as they can view state.
http://www.codeproject.com/Articles/15300/Using-Control-State-in-ASP-NET-2-0
The ViewState & ControlState both stores the control properties ,you can disable the ViewState Property only and that will not affect the ControlState at all which loads in the page first loading or if the page is postBack the controlState already loads from saved memory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With