I am using AspNet Core MVC 7
I am trying to create a custom HTML helper outside of a razor view. I am using the IHtmlHelper in this scenario and unfortunately outside of a razor view I cannot do something like this:
var uploader = _helper.Kendo().Upload()
.Name("uploadFiles")
.Multiple(true)
.HtmlAttributes(new { style = "margin: 15px 0 5px 0;" });
Compilation error:
Error CS1061 'IHtmlHelper' does not contain a definition for'Kendo'
and no accessible extension method 'Kendo' accepting a first argument of
type'IHtmlHelper' could be found (are you missing a using directive or an assembly reference?)