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: 13.0.131
Syntax
C#
public static IHtmlContentProxy ResolveUrls(
	this HtmlHelperExtensionPoint htmlHelper,
	string html
)

Parameters

htmlHelper
Type: Kentico.Web.MvcHtmlHelperExtensionPoint
HtmlHelper extension.
html
Type: SystemString
An HTML fragment with potential relative URLs.

Return Value

Type: IHtmlContentProxy
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 HtmlHelperExtensionPoint. 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
ArgumentNullExceptionhtmlHelper is null.
See Also