Click or drag to resize
AbstractCMSPage.GetImageUrl Method
Gets UI image URL.

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

Parameters

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

Return Value

Type: String
See Also