tags:

views:

29

answers:

1

I want to render MVC controls in non-MVC ASP.Net pages. Is this possible?

+1  A: 

RenderPartial is an extension method that extends the HtmlHelper. The HtmlHelper's constructor takes a ViewContext. All 3 of those are in the System.Web.Mvc namespace. So, you'd have to a the very least reference the Mvc dll. You would also need to create an HTML helper by creating the other 2 objects. I'd be interested if you got it work, but I don't know if it's possible.

Seattle Leonard