Can I have two separate projects: 1 WebForms and 1 ASP.NET MVC, both pointing to the same domain?

Is it possible to install two separate projects: 1 WebForms and 1 ASP.NET MVC to point to the same domain? that is, both point to different pages on www.somesite.com.

Here is some background in the app and why I ask. This is a brown box application that is currently 2.0 WebForms and has WebFormy completeness (i.e. ObjectDataSources, FormView controls, UpdatePanels, etc.). Other β€œfunny” things are lost in the code base, for example, 600+ stored procedures and 200+ linear methods in business-level code that receive data from the database through a stored process, perform some data processing, build an HTML string using string concatenation, and then return this line to the user interface level. What we plan to do is develop new functions in MVC and slowly convert existing functions to MVC one at a time. As part of this transition, we will also rewrite layers under the user interface,to clean up the mess there and do something like replace stored procedures with NHibernate and introduce an IOC container.

I know that you can run WebForms and MVC side by side in one project, however, because we will make wholesale changes in the way we do a lot of things throughout our development stack, I would like the new one to be completely separate project as part of the solution. This should help as a very clear reminder that this is a different way to do something than before, and to simplify the removal of old code, because it is no longer needed. What I don’t know is this possible? Can two separate projects point to the same domain?

Here is a quick example of what I think:

www.somesite.com/orders.aspx?id=123 (Orders page from an existing WebForms project) www.somesite.com/customer/987 (Client page from a new MVC project)

+3
1

. - MVC (global.asax.cs, , ..) .

0

Source: https://habr.com/ru/post/1741782/


All Articles