Adding MVC content to an existing ASP.NET application?

It is possible to mix webforms and mvc in one web site. Take a look at this article .

Up vote 2 down vote favorite 1 share g+ share fb share tw.

We have a web application written in ASP. NET for . NET 3.5, using standard web forms.

Going forward we want to start building new features, and over time migrate existing features, in ASP. NET MVC. Is such a thing doable?

Can we add the necessary files to an ASP. NET web application and thus "upgrade" it to be compatible enough with MVC so that we can start adding routes, controllers, views, etc.? The old site is using a frameset containing a top header, a left menu, and a main content. What I envisioned was to create a new masterpage for all the existing pages, integrating all of those things into each page instead, and then start adding new pages using views instead.

I understand that unless we upgrade to . NET 4 we cannot use MVC 3, so the way I see it we have the following options: Build a new website, somehow auto logon the new site with the same credentials when logging in on the main site, and link between the sites. I see tons of problems with this solution.

Integrate ASP. NET MVC 2 into the existing software, adding the necessary files, and starting to add new content in MVC style, only fixing critical bugs in the old files, and over time migrate them over to MVC. Upgrade to .

NET 4 and integrate ASP. NET MVC 3, pretty much the rest the same as option 2. Wait until we can schedule a full rewrite, likely to not happen in any foreseeable future.

Don't do it, keep web forms. Note that a full rewrite is out of scope at the moment, so some transitional period is the only option we can do right now. Option 2 and 3 are the ones we want, the rest are just for completeness.

Are those options feasible? Do we have other options I haven't thought of? Asp.net asp.

Net-mvc asp. Net-mvc-2 asp. Net-mvc-3 link|improve this question asked Jan 31 '11 at 10:26Lasse V.

Karlsen?83.2k15149301 90% accept rate.

It is possible to mix webforms and mvc in one web site. Take a look at this article.

Thanks, I guess we're good to go then :) – Lasse V. Karlsen? Jan 31 '11 at 11:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions