Try using DataBinding with ResolveUrl
Then in your code behind call the Header's Databind
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
Page.Header.DataBind();
}
If you start getting errors regarding the ViewState you may need to disable it on the header.