Hi,
I have managed to fix my previous problem. In summary, this is what I have done:
I have added this into my web.config
<PageParserPaths>
<PageParserPath VirtualPath="/_catalogs/masterpage/home.master" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
I can run my page now with no problem, but when I tries to add <% %> or <%! %> tag into the page: it runs this error
Error
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: affb9253-6e69-47a9-b94f-3657051aba7e
Date and Time: 7/3/2015 2:31:37 PM
Anything I can do to fix this?
Also, it works in home.aspx page. However, Response.Write("Something here"); displays nothing at all. Any tips?