Reputation: 2999
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 ?
Upvotes: 4
Views: 3063
Reputation: 6111
Maybe you could load the WebForm through jquery ajax:
$.ajax({ url : 'http://tempuri.org/webfrom.aspx',
type: 'GET',
cache : false,
success : function(data){
$("#yourcontainer").html(data);
}
});
Upvotes: 4