Problem with referencing CSS and Javascript files relatively
Posted
by Markus
on Stack Overflow
See other posts from Stack Overflow
or by Markus
Published on 2010-06-10T11:16:50Z
Indexed on
2010/06/10
11:33 UTC
Read the original article
Hit count: 280
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?
© Stack Overflow or respective owner