Can I use Html.RenderPartial on an ASP.NET MVC page?

I want to display MVC controls on ASP.Net pages other than MVC. Is it possible?

+3
source share
2 answers

RenderPartialis an extension method that extends HtmlHelper. The constructor HtmlHelpertakes a value ViewContext. All 3 of them are in the namespace System.Web.Mvc. So you should have the smallest link to the mvc dll. You will also need to create an HTML helper by creating the other 2 objects. I would be interested if you earn it, but I do not know if this is possible.

+1
source

DLL MVC , , ​​ Route.config, . , Model, View Controller, web.config

0

Source: https://habr.com/ru/post/1747231/


All Articles