I have a problem with javascript files on the main page ... I have the following:
<script src="Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="Scripts/Plugins/jquery-corners.js" type="text/javascript"></script>
This works ... until I get deeper into the routes ... for example, it http://localhost/mywebsiteworks, but it http://localhost/mywebsite/actiondoesn't work - I lose all my imported javascript.
I have Url.Content for my images ... but it looks like I can't do anything for my javascript. It can't be that hard ... I'm missing something! Any help would be appreciated!
Update
I found the following Using scripts on the main page with ASP.NET MVC ... but I cannot get this to work if I set it between the tags ... where I need it. If I try to put it there, I get the following error:
The collection of controls cannot be modified because the control contains (i.e. <% ...%>).
source
share