UrlResolverResolveUrl Method |
Resolves an application relative URL to the absolute form. Uses page context by default.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax public static string ResolveUrl(
string url,
bool usePage = true,
bool ensurePrefix = false
)
Parameters
- url
- Type: SystemString
Virtual application root relative URL - usePage (Optional)
- Type: SystemBoolean
If true, the page object can be used to resolve URLs - ensurePrefix (Optional)
- Type: SystemBoolean
If true, the current URL prefix is ensured for the URL
Return Value
Type:
StringAbsolute URL
Remarks See Also