System.Web.UI.Control.OnInit Method

Raises the Control.Init event.

Syntax

protected virtual void OnInit (EventArgs e)

Parameters

e
An EventArgs object that contains the event data.

Remarks

ASP.NET calls this method to raise the Control.Init event. If you are developing a custom control, you can override this method in order to provide additional processing. If you override this method, call the base control's Control.OnInit(EventArgs) method to notify subscribers to the event.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0