How did you guys work with jQuery, include
<script type="text/javascript" src="jquery.js"></script>
in Asp.Net MVC when working with partial views / controls? Basically, I don’t want jquery to be included in the main page because I don’t use jquery in all of my views, but I also want a simple user control to be able to create jquery in the correct location ('head') order without creating duplicate jquery.
The best way would be to use ScriptManaager, but I don't want to rely on ASP.Net Ajax for this in my application. Is there a “lite” ScriptManager I could use that would also allow the new released intellisense for jquery?
I created a WebControl that provides this functionality, but I don't get the intellisense support for VS2008, which I really liked.
Hope this makes sense.
source
share