Click or drag to resize
WebPartZoneInstanceGetUniqueWebPartId Method
Returns unique web part ID within the given Page template.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetUniqueWebPartId(
	string baseId,
	PageTemplateInstance templateInstance,
	int counterOffset = 0
)

Parameters

baseId
Type: SystemString
Base web part id (required)
templateInstance
Type: CMS.PortalEnginePageTemplateInstance
Page template instance
counterOffset (Optional)
Type: SystemInt32
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: String
See Also