Classic ASP integrated with ASP.NET MVC

I have a classic asp project, and his teammate created new functionality, but in asp.net mvc. I also know how to work with mvc, but I never used classic asp and mvc together.

For example, is it possible in this classic asp project to have a link that will be redirected to the mvc page in the same project?

Thanks!!

+4
source share
2 answers

Yes, you can have a link to any other page you want, regardless of technology. Similarly for redirection. For redirects in classic ASP use Response.Redirect

+5
source

Absolutely, pages (and this term is used easily in the MVC side of things) can link to each other without any problems. Now, any built-in authentication or session management or something like that will be much more complicated, but if all sites should do this, this is a link to each other, then they can do it like any other two websites. ASP pages can host manually created (as compared to HtmlHelper) links to MVC actions and can take forms that send values ​​to MVC actions (provided that the field names are constructed correctly).

There is nothing special about MVC actions. They simply handle HTTP GET / POST requests, like everything else.

+1
source

All Articles