Click or drag to resize
HtmlHelperResolveUrlsMethodsResolveUrls Method
Resolves relative URLs in the HTML fragment so that they can be used by the browser.

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static MvcHtmlString ResolveUrls(
	this ExtensionPoint<HtmlHelper> instance,
	string html
)

Parameters

instance
Type: Kentico.Web.MvcExtensionPointHtmlHelper
The object that provides methods to render HTML fragments.
html
Type: SystemString
An HTML fragment with potential relative URLs.

Return Value

Type: MvcHtmlString
An HTML fragment where relative URLs are replaced with URLs that can be used by the browser.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ExtensionPointHtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioninstance is null.
See Also