Actually putting a leading / in the script SRC is a bad idea. If your site isn't hosted at the root level then it will break every time. Instead you should either load the script in to the ScriptManager or should specify the site-root variable.
To turn on the ScriptManager:
Code:
Public Overrides ReadOnly Property RequireScriptManager() As Boolean
Get
Return True
End Get
End Property
To add to the ScriptManager:
Code:
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
DirectCast(Master.FindControl("scrptMgr"), ScriptManager).Scripts.Add(New ScriptReference("/jscripts/SafariChromeAJAXFix.js"))
End Sub
*Note: there is no ~ before the leading / because this is talking about the path the compiler follows.
Or
Code:
<script type="text/javascript" src="~/jscripts/jquery.min.js"></script>
*Note the ~ before the leading /. That is what tells ASP.Net to start from the site root, not the domain root.