Can ASP.MVC project be added to a solution that is all classic ASP web pages? Can calls from the classic ASP pages be routed to the ASP.MVC project? Can results be passed to and from the classic ASP pages and ASP.MVC?
Looking for links to sample code, white papers or people who have done it successfully.
No webforms at all. I have a 20 yr old web application in classic asp with monsterous amount of vbscript & javascript and no organization at all. I have to add a new feature which is written in ASP.MVC to this ancient application. There is a default.asp
main page which drives every request. How do I make a call from default.asp to the Controller in ASP.MVC project? Later when I close the view, how do I again render the default.asp page? Hope the question is more clear...
Did you ever find and example or solution to this? I'm also in a similar predicament and am looking for examples of integrating an asp.net part into a predominately asp classic web application.
I've maintained a website that had mvc, webforms and classic asp. First of all you can't have all 3 in the root of the site, that's just not going to work. So assuming you have the classic asp site in root, you can place the mvc site in a virtual directory.
Just have the classic asp default.asp page perform a request.redirect to the controller, if you need to pass parameters to it do it via the querystring. Sessions variables will not work.
Another option is to simply include the mvc view in a classic asp page as an iframe. So the default.asp page redirects users to , let's say, menu.asp . inside menu.asp is an iframe that points to an mvc controller/action method on the same box.
Sunnyehr
Member
2 Points
3 Posts
co-exist classic ASP with ASP.MVC
Sep 22, 2011 03:38 PM|LINK
Can ASP.MVC project be added to a solution that is all classic ASP web pages? Can calls from the classic ASP pages be routed to the ASP.MVC project? Can results be passed to and from the classic ASP pages and ASP.MVC?
Looking for links to sample code, white papers or people who have done it successfully.
Horizon_Net
Star
8277 Points
1435 Posts
Re: co-exist classic ASP with ASP.MVC
Sep 22, 2011 03:55 PM|LINK
Hi,
maybe this is what you are looking for - http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
If my post solves your problem, please mark as answer.
Sunnyehr
Member
2 Points
3 Posts
Re: co-exist classic ASP with ASP.MVC
Sep 22, 2011 04:54 PM|LINK
No webforms at all. I have a 20 yr old web application in classic asp with monsterous amount of vbscript & javascript and no organization at all. I have to add a new feature which is written in ASP.MVC to this ancient application. There is a default.asp main page which drives every request. How do I make a call from default.asp to the Controller in ASP.MVC project? Later when I close the view, how do I again render the default.asp page? Hope the question is more clear...
Thanks
nimh
Member
18 Points
4 Posts
Re: co-exist classic ASP with ASP.MVC
Mar 23, 2012 11:34 PM|LINK
Did you ever find and example or solution to this? I'm also in a similar predicament and am looking for examples of integrating an asp.net part into a predominately asp classic web application.
hybrid mvc asp.net asp
Sunnyehr
Member
2 Points
3 Posts
Re: co-exist classic ASP with ASP.MVC
Apr 01, 2012 11:17 PM|LINK
No solution yet :(
hybrid mvc asp.net asp
CodeHobo
All-Star
18647 Points
2647 Posts
Re: co-exist classic ASP with ASP.MVC
Apr 05, 2012 10:36 PM|LINK
I've maintained a website that had mvc, webforms and classic asp. First of all you can't have all 3 in the root of the site, that's just not going to work. So assuming you have the classic asp site in root, you can place the mvc site in a virtual directory.
Just have the classic asp default.asp page perform a request.redirect to the controller, if you need to pass parameters to it do it via the querystring. Sessions variables will not work.
Another option is to simply include the mvc view in a classic asp page as an iframe. So the default.asp page redirects users to , let's say, menu.asp . inside menu.asp is an iframe that points to an mvc controller/action method on the same box.
Also. Classic asp is only 14 years old, not 20
Blog | Twitter : @Hattan