View Single Post
  #5 (permalink)  
Old July 23rd, 2014, 08:55 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Hi Richard,

Ah, that makes sense.

>> I didn't think the backup file would affect anything as it wasn't referenced in the code

The Monochrome in the web.config or code refers to the Theme's folder, not to the individual Monochrome.css file. When a theme is rendered, ASP.NET creates links to *all* .css files in the theme's folders, in alphabetical order. This means your backup file was loaded last, overwriting whatever is in Monochrome.css.

Great find!

>> Right - lets get back to the next stage in the book (really enjoying it!)

Good to hear, thanks!


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
RichM-UK (July 28th, 2014)