Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HtmlSelect.OnInit Method

Raises the Init event for the HtmlSelect control.

Namespace:  System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

'Declaration
Protected Friend Overrides Sub OnInit ( _
	e As EventArgs _
)

Parameters

e
Type: System.EventArgs

A System.EventArgs that contains the event data.

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 method in a derived class, be sure to call the base class's OnInit method so that the registered delegates received the event.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft