Hi,
I'm trying to use the web layout controls within nested master pages, but struggling to see how I can get this to work.
What I would like is a root master page that contains the the main web layout control and also one panel that contains the page header. Then, I would like different master pages nested within the root master to produce different layouts, since different pages have different requirements.
I have the following snippet of code in the root master with the problem areas highlighted.
<form id="form1" runat="server">
<cc1:WebLayout ID="wlMain" runat="server" Height="200px" Width="200px" FitParent="FitWindow"
Orientation="Horizontal">
<Panels>
<cc1:WebLayoutPanel ID="wlpHeader" runat="server" Filled="false" MaxSize="100" MinSize="100"
Overflow="Hidden" BorderStyle="None">
<Content>
Here is the header
</Content>
</cc1:WebLayoutPanel>
<asp:ContentPlaceHolder ID="cplRootContent" runat="server">
</asp:ContentPlaceHolder>
</Panels>
</cc1:WebLayout>
</form>
I want the nested master page to dictate the next WebLayoutPanel layout, but it seems I can't put asp:ContentPlaceHolder's here since this generates an error.
Replacing the above two highlighted lines with this works:
<cc1:WebLayoutPanel ID="wlpContent" runat="server">
<Content>
<asp:ContentPlaceHolder ID="cplRootContent" runat="server">
</asp:ContentPlaceHolder>
</Content>
</cc1:WebLayoutPanel>
But then the root master is dictating the size, etc of the next panel, not the nested master.
Is it it possible to use nested masters in this way?