WebPartZoneInstance GetUniqueWebPartId Method Kentico 8.0 API Reference
Returns unique web part ID within the given Page template.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

baseId
Type: OnlineSystem String
Base web part id (required)
templateInstance
Type: CMS.PortalEngine PageTemplateInstance
Page template instance
counterOffset (Optional)
Type: OnlineSystem Int32
The counter number which will be used as a starter counter for checking the unique id. Example: counterOffset=2, returns ids starting with number two ('wp_2', 'wp_3', 'wp_4'...)

Return Value

Type: OnlineString
See Also