I found questions and good answers on how to inclue asp.net mvc inside webforms (like this), but I'm needing to reuse some webforms inside asp.net mvc.
How to do that ?
I was thinking in a solution where a call to a partial view (or a static helper) would render webforms as partialview inside a Razor View (eigther actions).
Is it possible ?
<form>withrunat="server"which obviously doesn't exist in ASP.NET MVC.iframeelements an option? It's icky, but it will allow this, fsvo allow. As Darin points out, WebForms requires a specially setup environment.iframeapproach. Even if it is icky it is reliable and guaranteed to work. In addition to that it allows you to have the 2 as separate applications and thus not polluting your ASP.NET MVC application with legacy stuff. Anyway there's no general answer to this question. It will very much depend on the exact scenario and the exact contents of the WebForm that you are trying to reuse as well as the level of interaction you need between the two.Server.Executeto load the web form be another possible solution?