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

Namespace: CMS.PortalEngine.Web.UI
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 13.0.131
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.PortalEngine.Web.UICMSWebPartZone
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