Code blocks are not allowed in this file

I was trying to enable code in an aspx page in SharePoint Designer, with no luck!

(warning, search google for reason not to do this.)

Appears my problem was related to not including the SubFolders option in the web.config file update.

<form id="form1"> Current server time is <% =GetTime()%>. </form>

This is the contents of my aspx page in SharePoint Designer (2010).

What web.config file did I update?


Do I need to run an IISreset?

Nope, I’ve tested this and there is no need for an IISreset.

Leave a Reply

Your email address will not be published. Required fields are marked *