全球化的原因,我需要能够做到这一点:如何使用另一个控制器的视图?
http://mysite/home
http://mysite/Accueil
我试过是继承了家庭控制在我的ACCUEIL类:
Public Class AccueilController
Inherits HomeController
End Class
的问题是,它试图进入ACCUEIL文件夹,查找的Index.aspx有
The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Accueil/Index.aspx
~/Views/Accueil/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
我希望它用,所以我没有重复的代码
~/Views/Home/Index.aspx
什么是最简单的方法呢?
问题是,一切都将被放在那里,如果我开始从每一个控制器这样的大这样做,一切都没有任何 – Fredou 2009-06-10 16:21:17