ASP.NET User Control Status

What is the advantage of using control state instead of view state when creating a user control in ASP.NET?

Why use state management?

Is there a good article about this?

+3
source share
2 answers

The difference between ViewState and ControlState is that the developer can disable the ViewState , while the ControlState cannot be disabled .

Therefore, when developing custom controls, when to use ViewState or ControlState?

  • , ViewState , ControlState.
  • : ViewState.

, , ViewState. , , DropDownList ViewState, ( ).

+1

Source: https://habr.com/ru/post/1746244/


All Articles