我可以在asp.net mvc的多个文件的Site.Master [英] can i have multiple site.master files in asp.net mvc

查看:115
本文介绍了我可以在asp.net mvc的多个文件的Site.Master的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数字,我想有相同的基地的布局,所以我使用的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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆