开发者

Classic ASP integrated with ASP.NET MVC

开发者 https://www.devze.com 2023-01-23 06:15 出处:网络
I have a classic asp project and a teammate created a new functionality, but it\'s in asp.net mvc. I also know h开发者_运维百科ow to work with mvc, but I never used classic asp and mvc together.

I have a classic asp project and a teammate created a new functionality, but it's in asp.net mvc. I also know h开发者_运维百科ow 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 redirect to a mvc page on the same project?

Thanks!!


Yes, you can have a link point to any other page you'd like regardless of technology. Likewise for a redirect. To redirect in classic ASP, use Response.Redirect


Absolutely, the pages (and that term is used lightly in the MVC side of things) can link between each other without any problems. Now, any built-in authentication or session management or anything like that will be considerably more challenging, but if all the sites need to do is link to each other then they can do this like any other two websites. The ASP pages can host manually-crafted (vs. HtmlHelper-crafted) links to the MVC actions, and can host forms that post values to the MVC actions (provided the field names line up properly).

There's nothing inherently special about the MVC actions. They're just handling HTTP GET/POST requests like anything else.

0

精彩评论

暂无评论...
验证码 换一张
取 消