WebPartManagerInternals::AddWebPart Method (WebPart^)

 

Adds a WebPart or server control to the WebPartManager control's collection of WebPart controls on a Web page.

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

public:
void AddWebPart(
	WebPart^ webPart
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts::WebPart^

The WebPart being added to the WebPartManager control's collection of controls.

.NET Framework
Available since 2.0
Return to top
Show: