Of course, there should be an easy way to put a simple code block in the main page :( I tried using the obvious syntax <%= "Hello, World!" %>, but the code blocks are not allowed. Then I tried the site column, I don’t know how to use them, and then I tried web zones, but the master page I tried to put the web part (which is more difficult to do and deploy btw) in the page layout, but it just does not display: /
All I want is something nice and simple at the top of my site that shows the current date and format that I want to use DateTime.Today.ToString("ddd, d MMMM yyyy"). How to do it?
(Otherwise, I resort to javascript document.write!)
Thanks everyone
source
share