Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 05, 2012 10:36 PM by CodeHobo
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.
Sep 22, 2011 03:55 PM|LINK
maybe this is what you are looking for -
Sep 22, 2011 04:54 PM|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|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|LINK
No solution yet :(
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