ProxyWebPartManager::OnInit Method (EventArgs^)

 

Raises the Init event and initializes the control.

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

public protected:
virtual void OnInit(
	EventArgs^ e
) override

Parameters

e
Type: System::EventArgs^

An EventArgs that contains the event data.

Exception Condition
InvalidOperationException

The WebPartManager control from the associated master page is null.

The OnInit method calls the base method, and then carries out tasks to initialize the ProxyWebPartManager control. An important task of this method is to assign the collection of connections referenced by the StaticConnections property to the WebPartManager control's WebPartManager::StaticConnections collection.

.NET Framework
Available since 2.0
Return to top
Show: