Problem with referencing CSS and Javascript fiels relativ
- by Markus
I have an IIS web site. This web site contains other web sites so the structure is like that.
\
MainWebSite\
App1\
App2\
All sites are Asp.net MVC Webapplications.
In the MasterPage of App1 i reference the Script-files like that
<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 workaround that? should i put all my Scripts and CSS files into the root directory is that a preferred solution?