Adds the new widget to the page and returns its instance.
Namespace: CMS.PortalControlsAssembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- widgetId
- Type: System Int32
The widget id
- zoneId
- Type: System String
The zone id
- zoneType
- Type: CMS.PortalEngine WidgetZoneTypeEnum
Type of the widget zone
- isLayoutZone
- Type: System Boolean
Indicates whether the zone is a layout zone
- templateInstance
- Type: CMS.PortalEngine PageTemplateInstance
The template instance
- row (Optional)
- Type: System.Data DataRow
The data of the new widget
Return Value
Type: WebPartInstanceSee Also