Saturday, April 21, 2007

Error ! Content controls are allowed only in content page that references a master page

----------------------------------------------------------
Content controls are allowed only in content page that references a master page.
----------------------------------------------------------

This error occurs when the webpage that contains a content element,
does not have any master page.

For example,
<%@ Page Language="VB" MaintainScrollPositionOnPostback="true" %>



will raise an error.

Either remove the Content controls or include appropriate master page

Solution:
<%@ Page Language="VB" MasterPageFile="~/MyMast.master" MaintainScrollPositionOnPostback="true" %>

No comments: