Due to the way the paths relate to VS, resolving the path to the JS file, and then how the actual path at runtime is resolved through the browser, I currently have the following location at the top of my main page in my application. that all my views have corresponding JS intellisense and are correctly resolved to execute:
<% if (false) { %>
<script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<% } else { %>
<script src="<%= ResolveUrl("~/Scripts/jquery-1.3.2.js")%>" type="text/javascript"></script>
<script src="<%= ResolveUrl("~/Scripts/MicrosoftAjax.debug.js") %>" type="text/javascript"></script>
<script src="<%= ResolveUrl("~/Scripts/MicrosoftMvcAjax.debug.js") %>" type="text/javascript"></script>
<% } %>
Is this possible, as others do, or is there some crazy better way to make me look like an ass? Thanks!
source
share