I\'ve got an ASP.NET MVC application that uses jQuery. To load the js libraries, I reference them like this:
Try this:
This will relativize the path to the root of your application regardless of whether it is at the top level or in a virtual directory. I actually developed a HtmlHelper extension that lets clean this up to:
<%= Html.Javascript( Url.Content( "~/Scripts/jquery-1.3.2.min.js" )) %>
Add the following to get intellisense. This needs the relative path to work, but gets excluded at runtime because the condition (always) fails.
<% if (false) { %>
<% } %>