Click or drag to resize
PageTemplateInstanceGetUniqueWebPartId Method
Returns unique web part ID within this Page template.

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

Parameters

baseId
Type: SystemString
Base web part id (required)
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