Question is pretty well stated in the title. Normally I would use <link... /> to reference my CSS Sheet but since I’m using a master page I don’t have access to the Head Tag so how do I reference a specific CSS sheet on my ASPX page. I tried using <%@ Import Namespace="Style.css" but no luck. Thanks for the help.
Question is pretty well stated in the title. Normally I would use <link… />
Share
Just add a CSS ContentPlaceHolder with a default value in it.
Basically, the CSS file you specify as default will be included unless you override that placeholder with an tag from a child page.
Your Master Page should look something like this.
Then from any pages using that Master Page, you can simply override that with a different stylesheet.
On (example) AboutUs.aspx