I have a master page with some links and scripts being resolved using ResolveUrl:
<link rel="stylesheet" type="text/css" href="<%#CMS.GlobalHelper.URLHelper.ResolveUrl("~/CMSTemplates/Assets/css/bootstrap.css") %>" />
<script type="text/javascript" src="<%#CMS.GlobalHelper.URLHelper.ResolveUrl("~/CMSScripts/jquery/jquery-.7.1.min.js")%>"></script>
Then I have two sub templates, ProductTemplate and GenericTemplate, that use that master page. However, everywhere I use ResolveUrl is blank when going through the ProductTemplate and works fine in the GenericTemplate.
If I hard code the values it works fine.