I want my master page to be divided in two parts - left and right.
Here's is how I do it:
The master page:
<section id="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
<div>
<asp:ContentPlaceHolder ID="left" runat="server" />
</div>
<div>
<asp:ContentPlaceHolder ID="right" runat="server" />
</div>
</section>
</asp:ContentPlaceHolder >
The About view:
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
<asp:Content ID="leftHome" ContentPlaceHolderID="left" runat="server">
<h2>About</h2>
</asp:Content>
<asp:Content ID="rightHome" ContentPlaceHolderID="right" runat="server">
<h2>About</h2>
</asp:Content>
</asp:Content>
I get the error: Content controls have to be top-level controls in a content page or a nested master page that references a master page.
How to resolve this?