HtmlSelect.OnInit(EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raises the Init event for the HtmlSelect control.
protected public:
override void OnInit(EventArgs ^ e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)
Parameters
Remarks
The OnInit method notifies the HtmlSelect control to perform any initialization steps that are required to create and set up an instance. If the IsViewStateEnabled property is false
and the IsPostBack property is true
, then the RequiresDataBinding property is set to true
.
Notes to Inheritors
When overriding the OnInit(EventArgs) method in a derived class, be sure to call the base class's OnInit(EventArgs) method so that the registered delegates received the event.