G
Guest
I want to insert a CSS Stylesheet file in a <LINK> tag inside my MasterPage
so that it will work in all of the the ASPX pages that use that MasterPage
(no matter where the page is in the directory hierarchy).
I tried adding
<link type="text/css" rel="stylesheet"
href="~/Shared/CSS/Standard.css" runat="server" />
in the <head> section of the MasterPage. When I look at the source of my
pages later when I'm running it, it *does* seem to resolve to the right path,
but my styles are not applied.
I know no way of debugging the linking of these things so I don't really
know why it's not finding my stylesheet.css file. Also, I've testing the CSS
file with plain HTML and it works fine.
Any ideas?
Alex
so that it will work in all of the the ASPX pages that use that MasterPage
(no matter where the page is in the directory hierarchy).
I tried adding
<link type="text/css" rel="stylesheet"
href="~/Shared/CSS/Standard.css" runat="server" />
in the <head> section of the MasterPage. When I look at the source of my
pages later when I'm running it, it *does* seem to resolve to the right path,
but my styles are not applied.
I know no way of debugging the linking of these things so I don't really
know why it's not finding my stylesheet.css file. Also, I've testing the CSS
file with plain HTML and it works fine.
Any ideas?
Alex