Click or drag to resize
CMSWebPartZoneLoadWebPart Method
Loads the web part to the given zone. Returns the newly created web part.

Namespace: CMS.PortalControls
Assembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.2.23
Syntax
C#
public static Control LoadWebPart(
	Control container,
	CMSWebPartZone zone,
	WebPartInstance part,
	bool reloadData,
	bool isVariant = false
)

Parameters

container
Type: System.Web.UIControl
Control container
zone
Type: CMS.PortalControlsCMSWebPartZone
Parent zone
part
Type: CMS.PortalEngineWebPartInstance
Web part instance
reloadData
Type: SystemBoolean
Reload the web part data
isVariant (Optional)
Type: SystemBoolean
Indicates whether the web part instance is a variant of another existing web part

Return Value

Type: Control
See Also