>>link href="~/CSS/style.css" rel="stylesheet" type="text/css" /
>>>
>
>The tilde shortcut thing only works on server-side controls, not normal HTML markup.
>
>>
>>But it is actually behind the other web app so maybe it should be
>>"/Sandbox/MSA/CSS/style.css"
>
>Yes.
>
>>I am a bit confused now.
>>the root directory of the is web app is set as a virtual (application) directory. Where does this refer to:
>>"/CSS/style.css"
>
>The root of the website.
>
>>or this
>>"CSS/style.css
>
>This is relative to the current page's location. So if the current page is in /Sandbox/MSA then CSS is assumed to be a subdirectory, ex. /Sandbox/MSA/CSS
>
>>or this
>>"~/CSS/style.css"
>
>This isn't resolved for you (take a look in the HTML sent to the browser and you'll still see the ~).
The tilde is likely the reason the external css was not being resolved then. I think I added it because I couldn't get the external images to work. Then after I played with the image url's I never took the tilde back out. Now I have it working in part, so sorting it out. I have to have in the css
/Images/file.jpg as my url value when in development but before I publish I have to change them all to:
/Sandbox/MSA/Images/file.jpg. What a pain, but it works.
Then in the aspx files it just needs to be CSS/style.css without the slash.
Thanks Paul. By the way, how did you get to see the error you saw? I only just saw the page without the images.
TimTimothy Bryan