NamespaceSystemLibrary.Common.Web
HtmlHelperFactory builds a new instance of a HtmlBuilder outside of your View Context
HtmlHelperFactory
public class HtmlHelperFactory
Inheritance
System.Object
HtmlHelperFactory
HtmlHelperFactory builds a new instance of a HtmlBuilder outside of your View Context
Returns a HtmlHelper instance
Usage:
var htmlHelper = HtmlHelperFactory.Build();
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper |
Returns a generic HtmlHelper instance
Usage:
class ViewModel
{
public string Title { get; set; }
}
var htmlHelper = HtmlHelperFactory.Build<ViewModel>();
Name | Description |
---|---|
T |
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<T> |
}