Code blocks are not allowed by default
While trying to add some code directly into a page using SharePoint Designer I realised that SharePoint disables the ability to create server-side script by default, and the code gets stripped out when I save the file. The error reads:…