I’ve got a master page in ASP.NET which references various other content such as javascript and CSS files. These are currently not in <asp: tags, they’re in regular HTML. How can I make these references relative to whatever content page is being loaded such that they work regardless of where the content page is located within the server? The other similar questions were specific to tags which have <asp: equivalents or SharePoint.
I’ve got a master page in ASP.NET which references various other content such as
Share
This is how I do it:
This way, it doesn’t matter where the master page is located.
Side point, as I’m sure you know, a
url()in a css file is evaluated relative to the css file. So when I have css files located beside their master template, any related images folders go there, too.