WebPartManager.OnInit Method (EventArgs)

 

Raises the Init event, which is the first event in the WebPartManager control life cycle.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

Protected Friend Overrides Sub OnInit (
	e As EventArgs
)

Parameters

e
Type: System.EventArgs

An EventArgs that contains the event data.

Exception Condition
InvalidOperationException

There is another WebPartManager control on the page

The OnInit method calls the base method, which raises the Init event for the control, and then carries out several preparatory steps, such as ensuring that there is only one instance of the WebPartManager control on a page, and loading personalization data.

.NET Framework
Available since 2.0
Return to top
Show: