A simple question (I hope):
We have a set structure within our projects for Assets, that being /Assets/img/, /Assets/css/ and /Assets/js/
I've been reading Brad Wilson's excellent article on Unobtrusive AJAX, in which he mentions the files required, FTA:
In addition to setting the flag, you will also need to include two script files: jQuery (~/Scripts/jquery-1.4.1.js) and the MVC plugin for unobtrusive Ajax with jQuery (~/Scripts/jquery.unobtrusive-ajax.js).
Is anyone aware of a way of informing MVC to look in a folder other than /Scripts/ for these files - I don't want to add a whole folder in the root of the project just for these 2 files.
UPDATE Oh dear, end of the day brain-rot obviously. Sorry all!
Many thanks
In your view, you can use whatever path you want to set up for your scripts:
<script src="@Url.Content("~/Scripts/jquery-1.4.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
I have mine pointed to the Scripts folder as that is what was set up by default, but you can change that to your specific path.