MVC masterpage嵌套

在share的文件夹下建一个母版页,在这个母版页中手动嵌套另一个母版页

 

代码
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="MvcApplication1.Views.Shared.Site1"
MasterPageFile="~/Views/Shared/Site.Master"%>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

</asp:Content>

你可能感兴趣的:(master)