What is Control State in State Management?

 Posted by deccansoft on 10/30/2010 | Category: ASP.NET Interview questions | Views: 2577

If you create a custom control that requires ViewState, you can use the ControlState property to store state information for your control. ControlState allows you to persist property information that is specific to a control and cannot be turned off like the ViewState property. To use control state in a custom control, your control must override the OnInit method and call the Register-RequiresControlState method during initialization and then override the SaveControl-State and LoadControlState methods.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response