# Friday, January 20, 2012

Dear reader:

If you are not an ASP.NET junior web developer like I am, then you can probably ignore this blog post as this is a regurgitation of information you likely already know.

I was happily programming along one day on Wednesday, January 19th, 2012 at Intel where I am trying to finish an AutomationReportingWebApp asp.net web application for the Visual Computing group in their testing of Media Conversion Application performance testing when I hit a wall with my default cascading style sheet (site.css) not applying styles the class style templates I just defined.

It turns out from an article located here that we can NEVER leave the default style sheet site.css named as so, or the file will not apply the changes you make there even if you edit and save the file.

By renaming the site.css file to something else, then you are able to totally avoid this problem.

Check it out specifically the first 2 asp.net forum entries: Change made in the "Site.css" does reflect only in the...

RSS 4 replies Last post Oct 09, 2009 07:54 AM by charles rhamazany (0). ‹ Previous Thread|Next Thread › CHARLES RHAM... Member 19 Points 41 Posts Reply . Change made in the "Site.css" does reflect only in the design view but not when I run my applicat... Oct 08, 2009 02:42 PM | LINK Hi, Each time I modify the "Site.css", I get the result in the "Design View" but nothing is happening when I run the application; In fact, I still get the same result as before making the change(e.g. the same blue background). And, anything that has the same id keeps the same value as previously. When I had new elements (div, ...), I get them in the Design view but not in the browser. When I delete both the Site.css as well as the Site.Master files and create new ones with the same name (Site.css and Site.Master), I still get the same result. I've clicked the "Refresh" icon, but that didn't produce any different result. I've also tried to delete the to the Site.css. But when I point again to the file, nothing changes. I get a different result only when I create new files with a different names. Is there any way to overcome this difficulty???! Maybe a way to refresh either file or both... Thank for helping me. . XIII All-Star 171788 Points 20179 Posts ASPInsiders Moderator MVP Reply . Re: Change made in the "Site.css" does reflect only in the design view but not when I run my appl... Oct 08, 2009 03:05 PM | LINK Hi, try pressing ctrl + F5 in your browser to fully reload it. Another trick's to rename the css file like for example from mycss01.css to mycss02.css. Grz, Kris. Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ... Keep the forums clean: report to the moderation team!

Friday, January 20, 2012 1:56:31 AM UTC  #    Comments [0]Trackback
All comments require the approval of the site owner before being displayed.
Please login with either your OpenID above, or your details below.
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview