.net - C# MVC: using CSS from another location -
I have to put all the images, css, etc. into a folder structure and all the other code. I am trying to get the right path and just can not do it.
I have CSS in the following structure: /public/content/*.css and all project codes in it: / protected / code / ... and are in the same public and protected folder.
How do I use public resources in protected projects?
Cheers,
This sounds like something where you need the relative path name it occurs. For example, if you are inside the folder / protected / code and you need access to folder / public / content / main case, you will use the path .. /../ public / content / main css
refers to folder / protected / code, .. folder / protected, and .. refers to the folder.
Comments
Post a Comment