Problem with referencing CSS and Javascript fiels relativ
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:23 UTC
Read the original article
Hit count: 258
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?
© Stack Overflow or respective owner