One of the conventions within the ASP.NET MVC framework is store JavaScript files in the Scripts directory, nothing wrong with this and when you reference your scripts you probably do something like:
<script type="text/javascript" src="/scripts/FormHelpers.js"></script>
If you’re not using MVC Contrib in your applications then download it now!
http://www.codeplex.com/MVCContrib
Once you reference the MVC Contrib assemblies you’ll have access to lots of goodies one of which relating to this post is the html helper extension Html.ScriptInclude. Using this helper refactors the output by removing duplication and encapsulating the script location into one place.
1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2:
3: <html xmlns="http://www.w3.org/1999/xhtml">
4: <head runat="server">
5: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6:
7: <%= Html.ScriptInclude("Jquery.js") %>
8: <%= Html.ScriptInclude("Form.Helpers.js") %>
9: <%= Html.ScriptInclude("Form.Common.OnLoad.js") %>%>
10:
11: <asp:ContentPlaceHolder ID="head" runat="server">
12: </asp:ContentPlaceHolder>
13: </head>
14:
f79c3716-6f54-4dcc-ad2d-49f2e2421b8b|0|.0