Click or drag to resize
UIHelperGetImagePath Method
Gets UI image path.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 12.0.0
Syntax
C#
public static string GetImagePath(
	Page page,
	string imagePath,
	bool isLiveSite = false,
	bool ensureDefaultTheme = false
)

Parameters

page
Type: System.Web.UIPage
Page
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 always used

Return Value

Type: String
See Also