Share via


Page Layout Parser Error

Ever got the following parser error on one of your page layouts?

 Only Content controls are allowed directly in a content page that contains Content controls.

Following the error message, it shows the source containing some HTML fragment that you never added yourself. I got this error when I used all lower case for the content tag, as in <asp:content>. This error goes away when I change the casing of the tag to <asp:Content>.