Last post Sep 23, 2014 12:20 AM by mapiruli
Sep 22, 2011 04: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 04:55 PM|Horizon_Net|LINK
maybe this is what you are looking for -
Sep 22, 2011 05: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 24, 2012 12:34 AM|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 02, 2012 12:17 AM|Sunnyehr|LINK
No solution yet :(
Apr 05, 2012 11: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
Sep 23, 2014 12:20 AM|mapiruli|LINK
I have seen your post, and althoug is fromsome time ago I am facing a similar case.
We have an app in ASP, and we are migrating to ASP.MVC step by step. For the moment, we want to have an ASP.NET MVC page and an iframe inside with ASP code.
As fas as I read, unless the apps are in different pools there wouldn't be any problem. But my question is, how the ASP.NET MVC and ASP code can share sesión and security options?
We are talking about a bank, so security is very important. I would appreciate any Help. Thank you!