resourcesys
asked on
Can you fully integrate a webform into an MVC view?
Hi all,
We are building an MVC website, and we would like to include some legacy functionality from a WebForms site.
So, we have our MVC view and we can load a webform into a DIV on the page, but when we post the webform, it goes to an incorrect url.
We have tried setting the postbackurl property of a button on the webform but this makes no difference.
Has anyone tried to do something similar before, and if so, did you have any success?
Is this even possible?
Any advice is much appreciated.
resourcesys.
We are building an MVC website, and we would like to include some legacy functionality from a WebForms site.
So, we have our MVC view and we can load a webform into a DIV on the page, but when we post the webform, it goes to an incorrect url.
We have tried setting the postbackurl property of a button on the webform but this makes no difference.
Has anyone tried to do something similar before, and if so, did you have any success?
Is this even possible?
Any advice is much appreciated.
resourcesys.
ASKER
Hi Noah,
This wasn't really helpful, as we have no problem running both WebForms and MVC in the same project, but we appreciate your response.
Thank you.
resourcesys.
This wasn't really helpful, as we have no problem running both WebForms and MVC in the same project, but we appreciate your response.
Thank you.
resourcesys.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please refer to the following link. It is a blog which discusses the combination of ASP.NET WebForms and MVC together into one project.
Reference: https://blogs.taiga.nl/martijn/2009/06/03/aspnet-webforms-and-mvc-together-in-one-project/