Error Tips -1

An error occurred during the processing of . Only Content controls are allowed directly in a content page that contains Content controls.

I got this strange error when modifying the page under SharePoint library, i bit little confused when this error happens. For a couple of minutes i look the code and tags, then i found out i missed runat=”server” in asp:content tag. After adding runat=”server” to asp:content tag, now the page works fine.

Note: If you are using Server side code within this type of pages, mention runat=”server” within <script> tag.
ie., <script runat=”server”></script>
If you are misssed that, the same error will happens.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>