任何人都可以确认在ASP.NET MVC中部分视图的最佳位置?
我的想法是,如果它的全球视图,将被用于许多地方,然后共享。
如果它的一部分视图被包装成部分视图,使代码阅读更容易,那么它应该进入Views / Controller目录
我是正确的还是我错过了什么?
解决方法
我相信你是正确的。这里是我做的一个例子,一般导航部分视图在我的共享目录。然后在Views / [ControllerName]目录中查看特定Controller的部分视图。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。