Click or drag to resize
AbstractUserControlGetImageUrl Method
Gets UI image relative path.

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntax
C#
public string GetImageUrl(
	string imagePath,
	bool isLiveSite = false,
	bool ensureDefaultTheme = false
)

Parameters

imagePath
Type: SystemString
Partial image path starting from ~/App_Themes/(Skin_Folder)/Images/ (e.g. '/CMSModules/Membership/module.png')
isLiveSite (Optional)
Type: SystemBoolean
Indicates if URL should be returned for live site
ensureDefaultTheme (Optional)
Type: SystemBoolean
Indicates if default theme should be ensured

Return Value

Type: String
See Also