Reputation: 75
I know it probably a really easy question to answer but I trying to get Intellisense Jquery working on Visual Studios 2010 over the whole project. I can get it working in one document easy. I've tried placing
@if (false) { <script src="../../Scripts/jquery-1.7.2-vsdoc.js" type="text/javascript"> </script> }
in my layout page but again only works in this document. Does this mean i will have to copy this into every page?
Upvotes: 3
Views: 89
Reputation: 570
Unless you use a dynamic generator for html files, yes you'll have to place it in the header of every page you need to add it to unfortunately. You should be changing you links too if you're going live.
@if (false) { <script src="/../../Scripts/jquery-1.7.2-vsdoc.js" type="text/javascript"> </script> }
I just added a "/" before your src, so that browsers can find your files easier.
Upvotes: 2
Reputation: 12705
if you can put this line on every page its good
alternative to this you can use ///reference
tag look here
the ///reference
tag also works inside other javascript files
Upvotes: 1