I am trying to load the razor script which exists as a separate macro in umbraco. I am using umbraco 4.7.0
I am basically doing geo-targeting and hence need to run the script each time on a page load. so I am looking for something like :
<script type="c#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Call the Macro here
}
Obviously I can do this in the template
<umbraco:Macro Alias="GeoTargetting" runat="server" />
but I need to call this macro before any control is loaded in the page.
PLease help.
Thanks