5

In ASP.Net 5 MVC 6 there is the Html.RenderPartialAsync but no Html.RenderPartial. Doing some digging I see that there is a new thing called View Components which seem to be a more powerfull version of partial views but are geared toward dynamic things. Did MVC 6 drop RenderPartial or am I just not finding any documentation on it? I want to use it to just include a static navigation menu file into the main layout.

1 Answer 1

4

RenderPartial really does not exist in "Microsoft.AspNet.Mvc": "6.0.0-rc1-final". However, it has been implemented already and probably will be included in 6.0.0-rc2. https://github.com/aspnet/Mvc/issues/3705.

The workaround is to use RenderPartialAsync, it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.