我有master page
两个父级contentplaceholders
,后来我被添加masterpage
到现有的嵌套中master page
。
在那我想要在 body 部分 parent 中的两列masterpage contentplaceholder
,为此我采用了两个 div 标签,在每个 div 标签内我采用了两个contentplaceholder
.
但他们返回母版页错误说:
The page contains markup that is not valid when attached to a master page.
这是我的儿童母版页,我写错了吗
<%@ Master Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="Admin.master.cs" Inherits="OnlinePortalWebProject.Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Parenthead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ParnetBody" runat="server">
<div class="Admin">
<div class="AdminLeftPanel">
<asp:content ID="LeftPanel"
ContentPlaceHolderID="ChildLeftPanelContnet" runat="server">
</asp:content>
</div>
<div class="AdminRightPanel">
<asp:content ID="Content3"
ContentPlaceHolderID="ChildRightPanelContnet" runat="server">
</asp:content>
</div>
</div>
</asp:Content>