简体   繁体   English

同一解决方案中的两个ASP MVC视图项目,[多个项目中的视图]

[英]Two ASP MVC view projects in the same solution, [Views in multiple projects]

我想知道如何在各个项目之间传递视图,假设可以在单独的项目中拥有视图...这可能吗?

I don't think there is a way to pass entire view from one project to another even if it is in same solution. 我认为即使在相同的解决方案中,也没有办法将整个视图从一个项目传递到另一个项目。 You should find alternative solution like using WCF(you would be able to pass the data, view can be rendered from the other project) or try using areas instead of different projects. 您应该找到替代解决方案,例如使用WCF(您可以传递数据,可以从其他项目渲染视图),也可以尝试使用区域而不是其他项目。 This is not the solution but this might help. 这不是解决方案,但这可能会有所帮助。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM