I am trying to use the jquery library in ASP.NET in a subfolder called "samples" with the main page located in the root directory. Links to jquery scripts are currently located in the main tag of the main page. If the page I create is also in the root directory, everything works fine. If I move the page to the "samples" subdirectory, jquery breaks.
I can fix the problem using something like the following in the main tag:
<script src="<%=ResolveUrl("~/js/jquery.js")%>" type="text/javascript"></script>
... but then I lose the ability to use jquery intellisense, because I no longer connect directly to the file during development.
So my quesiton is this: how can I use the jquery library on the .aspx page without losing touch with intellisense when my page is in a subfolder and the main page is in the root?
source
share