Hi Gerard,
K# Macro syntax {% %} is not working in ASCX templates. It's working only within Text/HTML.
But you can access the field of current page with the following C# script in the ASCX Page Template:
<%= CurrentDocument.GetValue("YourCustomField") %>
<%= CurrentDocument.DocumentName %>
Also, you can use any other C# code as well =)