In Master.Page I make references to the styles and scripts that will be inherited by the other pages through ResolveUrl.
<script src="<%# ResolveUrl("~/") %>Scripts/jquery-1.11.1.js" type='text/javascript'></script>
<script src="<%# ResolveUrl("~/") %>Scripts/jQuery-Mask-Plugin.js" type='text/javascript'></script>
<script src="<%# ResolveUrl("~/") %>Scripts/jQuery-Formatacao.js" type='text/javascript'></script>
<link href="<%# ResolveUrl("~/") %>Styles/estilo.css" rel='stylesheet' type='text/css' />
I saw some posts that suggest inserting the code below so that the initial reference can be effective:
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
Page.Header.DataBind();
}
Is this really necessary?
I'm using the 4.0 framework.