I'm trying to use code blocks in a out of the box sharepoint 2007 install. However, when I add a line like:
<%= Response.Write("hello"); %> There are two types of errors. The first is in the SharePoint designer that says, "In content pages, content is not allowed outside <script> or <asp:Content> regions." However, this line is wrapped in an <asp:Content> region. So, this seems odd.
The second error shows up when trying to display the page. It says, "An error occurred during the processing of /default.aspx. Code blocks are not allowed in this file."
Any help on how to unlock this, would be much appreciated.
Thanks
<%= Response.Write("hello"); %> There are two types of errors. The first is in the SharePoint designer that says, "In content pages, content is not allowed outside <script> or <asp:Content> regions." However, this line is wrapped in an <asp:Content> region. So, this seems odd.
The second error shows up when trying to display the page. It says, "An error occurred during the processing of /default.aspx. Code blocks are not allowed in this file."
Any help on how to unlock this, would be much appreciated.
Thanks