So, I'm supporting a project made with WebForms, I've upgraded it to MVC5 and want to use Razor views for new features I'm adding. Why I want to do this is because I've no time/will to rewrite all the stuff I got for pure Razor view.

There used to be a hack to achieve this sort of stuff by extending the controller and rendering the razor view inside the aspx view as a partial. described here

But this was in MVC3, applied to my project it throws a StackOverflowException when trying to render the page.

Any ideas of achieving it in MVC5?

Related posts

Recent Viewed