我可以在asp.net mvc的多个文件的Site.Master [英] can i have multiple site.master files in asp.net mvc
问题描述
我有一个数字,我想有相同的基地的布局,所以我使用的Site.Master文件,这和它完美的工作文件。但现在我想另一组具有不同的Site.Master的文件页面。我可以在一个解决方案多个文件的Site.Master
i have a number of files that i want to have the same "base" layout so i am using the site.master file for this and its working perfectly. but now i want another set of pages with a different "site.master" file. can i have multiple site.master files in one solution
推荐答案
是的。只要把主人在共享文件夹与Site.master母文件一起并更改新View页面引用。您可以通过创建新的视图时从向导替换Site.master母字符串的母版页或选择母版页做到这一点。
Yes. Just put the masters in the Shared folder along with the Site.master file and change the reference in the new View pages. You can do this by replacing the "Site.master" string for the Master Page or selecting the master page from the wizard when creating new views.
这篇关于我可以在asp.net mvc的多个文件的Site.Master的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!