Last post Apr 05, 2012 10:36 PM by CodeHobo
Sep 22, 2011 03:38 PM|Sunnyehr|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.
Sep 22, 2011 03:55 PM|Horizon_Net|LINK
maybe this is what you are looking for -
Sep 22, 2011 04:54 PM|Sunnyehr|LINK
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...
Mar 23, 2012 11:34 PM|nimh|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.
Apr 01, 2012 11:17 PM|Sunnyehr|LINK
No solution yet :(
Apr 05, 2012 10:36 PM|CodeHobo|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