Problem with referencing CSS and Javascript files relatively
- by Markus
I have an IIS web site. This web site contains other web sites so the structure is like this.
\
MainWebSite\
App1\
App2\
All sites are Asp.net MVC Webapplications.
In the MasterPage of App1, I reference the script files like this:
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.custom.min.js">
</script>
The Problem is that he now tries to find the File at http:\server\MainWebSite\Scripts....
how can i work around that? Should I put all my Scripts and CSS files into the root directory, is that a preferred solution?