What to use instead of WebViewPage.RenderPage method in ASP.NET 5 MVC6

末鹿安然 提交于 2019-12-05 08:19:33

I've always had success using @Html.Partial("~/Views/Shared/_ImportCssInline.cshtml") rather than @RenderPage - I hope there's not usage differences for you. There are also async versions of these imports now, too.

Since the Html property is now injectable as the interface IHtmlHelper, I assume the direct methods were removed in the improvements for the testability of the views.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!