ASP.NET MVC 多项目区域设置问题
对于那些在 VS 2010 中的 ASP.NET MVC 2 中设置 muli 项目区域的人,我有几个问题要问您:
- 其他项目区域可以使用一个母版页吗?或者每个人都必须有自己的母版页?
- web.config 文件怎么样?每个区域都需要配置文件吗?还是要靠师傅?
- 我尝试删除母版页引用,但出现智能感知错误,并且在执行以下操作后无法监视更改: http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx
我想我需要留在母版页中,以便至少有效。
谢谢。
For those who setup muli project areas in ASP.NET MVC 2 in VS 2010, I have a few questions for you:
- Can other project areas use one master page? Or does each have to have their own master page?
- What about the web.config file? Does each area need the config file? Or does it rely on the master?
- I tried removing the master page reference, but I get an intellisense error and failed to monitor changes after following this: http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx
I assume I need to leave in the master page so that at least works.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。母版页只是一个文件,可以在应用程序中的任何位置引用它
每个区域都有一个web.config。在我的应用程序中,它们看起来完全相同,因此我假设应用程序从每个单独的 web.config 中获取其设置,并且根区域在根 web.config 中也有自己的单独设置。
Yes. The master page is just a file, and it can be referenced anywhere in your application
There is a web.config in each area. In my application they all look exactly the same, so I assume the application is taking its settings from each individual web.config, and that the root area also has its own individual settings in the root web.config.