Hi I have a template called "general page" which inherits from my master. In this template I want to create a new content area which is available in the the general template and all its sub templates
<asp:ContentPlaceHolder Id="content" runat="server"> this is my content </asp:ContentPlaceHolder>
when I try and add it I get a parse error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Only Content controls are allowed directly in a content page that contains Content control
Could you post the full code in your template? This kind of thing can happen when you have incorrectly nested items in the template. If it's not possible to post the code, I'd double check your syntax and make sure you're opening/closing controls correctly.
inheritance and placeholders
Hi I have a template called "general page" which inherits from my master. In this template I want to create a new content area which is available in the the general template and all its sub templates
<asp:ContentPlaceHolder Id="content" runat="server">
this is my content
</asp:ContentPlaceHolder>
when I try and add it I get a parse error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Only Content controls are allowed directly in a content page that contains Content control
Hi Rocoeh,
Could you post the full code in your template? This kind of thing can happen when you have incorrectly nested items in the template. If it's not possible to post the code, I'd double check your syntax and make sure you're opening/closing controls correctly.
Hope this helps...
is working on a reply...