With the Razor view engine in MVC3,
Is it possible to render a legacy ascx?
I was expecting to be able to do something like:
@Html.RenderPartial("Footer.ascx")
With the Razor view engine in MVC3,
Is it possible to render a legacy ascx?
I was expecting to be able to do something like:
@Html.RenderPartial("Footer.ascx")
Yes. Try this instead:
or
Just wanted to add that I haven't seen a lot of people posting this solution:
This is better practise if you are using MVC, because you can specify any data you need in the controller instead of trying to manage it in a free-floating partial view. Very beneficial if you use a BaseController class to initialize all your calls.