Click here to Skip to main content
15,881,561 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We have a website running that is completely ASP.NET (version 3.5). The website has grown well over time. We have a new project in mind, which we want to apply ASP.NET MVC3 for.

My question is, if we try to design and move toward MVC3, is there a way to link the old ASP.NET website to MVC3 application? or would this cause any problems? for example can a link for the previous domain (myDomain.com) be extended in the ASP.NET website, where in if you go to myDomain.com/newProject would run the mvc3 app?

Any suggestions are greatly appreciated.
Posted
Updated 14-Feb-12 9:54am
v2

Why not? A Web site is still a Web site, MVC-based or not. It should not cause any problems if your legacy Web site was reasonably designed. Further detail highly depends on your existing code, required modifications and, first of all, on how tightly do you want to integrate them. If your legacy site does not have critical bugs and the coupling is going to be very loose, consider the problem is already solved (after all, two unrelated sites can just add a few references to each other; can it change their functionality?). If you need tighter integration — it depends.

You need to develop a sound plan of integration, perhaps with intermediate stages keeping both parts of production. In this approach, you could migrate from a very loose integration to more tight in stages. Again, it highly depends of existing and required functionality.

—SA
 
Share this answer
 
Comments
robroysd 14-Feb-12 16:34pm    
Thanks. I am reading up and doing Sample App stuff from Pro MVC3 right now. And i really like the testability of it. I do have some concerns about how easy it will be for grids and other things (i know mvc3 doesn't have grids, but you can use JQuery plugins). I will probably soon get to the routing config part where i can link my existing site to a new app. Thanks for the reply.
Sergey Alexandrovich Kryukov 14-Feb-12 16:59pm    
Sure.

Good luck, call again.
--SA
Wonde Tadesse 14-Feb-12 18:40pm    
5+
Sergey Alexandrovich Kryukov 14-Feb-12 18:56pm    
Thank you, Wonde.
--SA
Espen Harlinn 28-Feb-12 14:19pm    
Nice reply :)
It's pretty much easy. The following article explained clearly how to do it.Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 18:56pm    
Basically agree, but in reality -- it depends of factors I tried to overview.
My 5.
--SA
Wonde Tadesse 14-Feb-12 19:12pm    
Thanks. "A Web site is still a Web site ..." Somehow right. Perhaps they all will be viewed in browser. However the technology determines how they are developed. Asp.Net WebForm, MVC or a Jsp JSF , PHP ... technology wise they are still different.
robroysd 14-Feb-12 19:11pm    
Thank you much...
Wonde Tadesse 24-Apr-12 19:32pm    
Thanks
Espen Harlinn 28-Feb-12 14:19pm    
5'ed! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900