I want to create a custom separated from page html-helper that would use partial views functionality, but for some reason Html.Partial("_partialName")
doesn't work
Content of separated cshtml file in App_Code
:
@helper MyHelper(IEnumerable<string> something)
{
<div>@Html.Partial("_viewName", something)</div>
}
How to just use Html.Partial
like in Razor view page?