UpdatePanel.OnInit(EventArgs) Method

Definition

Raises the Init event.

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

e
EventArgs

An EventArgs object that contains the event data.

Exceptions

The ContentTemplate property is being defined when the ContentTemplateContainer property has already been created.

Remarks

The UpdatePanel control's ContentTemplate property is instantiated during the OnInit method.

The OnInit method is used by control developers to extend the functionality of the UpdatePanel control.

Notes to Inheritors

When you override the OnInit(EventArgs) method in a derived class, be sure to call the OnInit(EventArgs) method of the base class so that registered delegates can receive the event.

Applies to

See also