Using tilde in script tag src attribute
Unfortunately, what you want just doesn't work (although I agree it should).
If you are using a script manager, then you can do something that is reasonably close:
<asp:ScriptManager> <Scripts> <asp:ScriptReference Path="~/Scripts/jquery-1.8.2.min.js" /> </Scripts></asp:ScriptManager>