Web窗体应用程序内MVC应用程序 [英] MVC app inside WebForm app

查看:153
本文介绍了Web窗体应用程序内MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.Net网站建于.NET 3.5。当在aspx页面的一个点击,我想打开该网页内的MVC appliation。 MVC应用程序是由另一家公司开发的。什么是这样做的最佳方式?

I have an ASP.Net website built in .net 3.5. When clicking on one of the aspx page, I want to open an MVC appliation inside that page. MVC app is developed by another company. What is the best way of doing that?

斯科特Hanselman的<一个href=\"http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx\"相对=nofollow>文章不包括这种情况下,我猜。

Scott Hanselman's Article doesn't include this scenario I guess.

推荐答案

这取决于你的应用程序和外部开发的应用程序之间期待什么样的互动。如果UI是不会在它们之间进行互动,然后一个iframe可能是你在找什么。如果要进行交互,那么你可以使用两侧自曝API或Web服务之间进行交互。

It depends on what kind of interaction you are expecting between your app and the externally developed app. If the UI isn't going to interact between them then an iframe is probably what you're looking for. If it is going to interact then you can interact between them using exposes apis or web services on both sides.

这篇关于Web窗体应用程序内MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆