ASP.NET MVC loading of CSS based off of controller
- by Scott
Within my site I have controller specific CSS files in addition to my master css file. For example
CSS/
Prodcuts/
product.css
...
Blog/
blog.css
...
masterStyle.css
Where masterStyle.css is the master css file. What I want to do is when the user hits http://www.example.com/Products/ only mySite.css and all css files under Products get included. What is the best way to go about doing this?