Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The problem is, when the text elements placed inside Default.aspx are put in their relative Content Placeholders, they are written on the placeholders of your Site.master page and not those of Project.master (which have the same names).</p> <p>You should resolve the naming conflict, by assigning different ContentPlaceHolderIDs to the the placeholders in Project.master (this means you'll also have to change the references in Default.aspx).</p> <p>This would be your Project.master file:</p> <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="Project.master.cs" Inherits="_ProjectMaster" MasterPageFile="~/Site.master" %&gt; &lt;asp:Content ContentPlaceHolderID="holderForm" runat="server"&gt; &lt;!-- whatever... --&gt; &lt;asp:ContentPlaceHolder ID="holderFormInternal" runat="server" EnableViewState="true"&gt;&lt;/asp:ContentPlaceHolder&gt; &lt;!-- ... --&gt; &lt;/asp:Content&gt; &lt;asp:Content ContentPlaceHolderID="holderFooter" runat="server"&gt; &lt;asp:ContentPlaceHolder ID="holderFooterInternal" runat="server" EnableViewState="true"&gt;&lt;/asp:ContentPlaceHolder&gt; &lt;/asp:Content&gt; </code></pre> <p>And thus, your .aspx pages that use the Project master page instead of the global Page.master must be changed to:</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="~/Project.master" %&gt; &lt;asp:Content ContentPlaceHolderID="holderFormInternal" runat="server"&gt; &lt;p&gt;Hello World!&lt;/p&gt; &lt;/asp:Content&gt; &lt;asp:Content ContentPlaceHolderID="holderFooterInternal" runat="Server"&gt; &lt;/asp:Content&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload