SharePoint Developer Center > SharePoint Products and Technologies Forums > SharePoint - Development and Programming (pre-SharePoint 2010) > Only Content controls are allowed directly in a content page that contains Content controls

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

Locked

  • Friday, May 30, 2008 6:10 PM
     
     

     

    Hello

     

    FYi I am using SPD.

     

    I saved dispform.aspx with the new name dispform1.aspx. Then I did some modification in the pages, everything was correctly. After some time I re-open new page using SPD, I am  not able to open the page in design/code mode. It is not giving me any error only showing message in status bar retrieving dispform1.aspx. I wait almost 1 hours, but no luck.

     

    When I try to run this new page I am getting following error

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

     

    Earlier it was working and I have not made any changes.

     

    I need to recover it, as I did customize the whole page, please advise

     

    Ani

Answers

  • Friday, May 30, 2008 6:25 PM
     
     Answered

    You probably accidently have some markup outside of the <asp:Content controls. Open your page back up and ensure that all code except the <%@ directives are within an <asp:Content block.

     

     

     

All Replies

  • Friday, May 30, 2008 6:25 PM
     
     Answered

    You probably accidently have some markup outside of the <asp:Content controls. Open your page back up and ensure that all code except the <%@ directives are within an <asp:Content block.

     

     

     

  • Friday, May 30, 2008 8:07 PM
     
     

    That means I can not recover old page. It is showing in folder directory infact I am able to rename but can no open it, Advise