Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In-Line code in SharePoint 2007

Status
Not open for further replies.

dariwe

Programmer
May 10, 2000
17
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top