Restores the System.Web.UI.HtmlControls.HtmlSelect control's view state information from a previous page request that was saved by the HtmlSelect.SaveViewState method.
- savedState
- An object that represents the control state to be restored.
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, control developers can override this method to specify how a custom server control restores its view state. For more information, see ASP.NET State Management Overview.
The System.Web.UI.HtmlControls.HtmlSelect control's view state is stored as a System.Web.UI.Triplet object. The System.Web.UI.Triplet.First field of the System.Web.UI.Triplet object holds the System.Web.UI.HtmlControls.HtmlSelect control's base view state. The System.Web.UI.Triplet.Second field of the System.Web.UI.Triplet object holds the System.Web.UI.WebControls.ListItemCollection collection represented by the HtmlSelect.Items property. The System.Web.UI.Triplet.Third field of the System.Web.UI.Triplet object holds the selected indices represented by the HtmlSelect.SelectedIndices property. The HtmlSelect.LoadViewState(object) method calls the base class's HtmlContainerControl.LoadViewState(object) method to restore the control's base view state.
The HtmlSelect.LoadViewState(object) method is used primarily by control developers extending the functionality of the System.Web.UI.HtmlControls.HtmlSelect control.