I have a simple master template with HTML tags and I want to put a footer and header in it. For some reason it doesn't display both the header and footer at the same time. Am I using ContentPlaceHolderId wrong? Should they not be all templates?
MASTER template
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<head>
</head>
<body>
<asp:ContentPlaceHolder Id="header" runat="server"></asp:ContentPlaceHolder>
<asp:ContentPlaceHolder Id="footer" runat="server"></asp:ContentPlaceHolder>
</body></html>
</asp:Content>
Master (child node: header) template:
<asp:content ContentPlaceHolderId="header" runat="server">TEST</asp:content>
Master (child node: footer) template:
<asp:content ContentPlaceHolderId="footer" runat="server">TEST</asp:content>
I have 3 doc types (master, header, footer) with the id of header and footer.
Do one thing. Create a template and inside
< asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
< div>header< /div>
< div>body< /div>
< div>footer< /div>
< /asp:Content>
add your html code which will contain the header,body and footer.