Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rocoeh 65 posts 86 karma points
    Apr 23, 2012 @ 18:11
    Rocoeh
    0

    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

     

  • Dan 1285 posts 3917 karma points c-trib
    Apr 23, 2012 @ 19:01
    Dan
    0

    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...

Please Sign in or register to post replies

Write your reply to:

Draft