views:

382

answers:

3

I am working on a test application based on ASP.NET MVC. I am new to CSS stuff so I am learning that as well.

I have created a master page called "new.master" and created a new css "new.css". I am calling the view from controller as:

return View ("About", "new");

What I am doing is that I am frequently updating the css and master page. So I run the application in debug mode frequently. After sometime I stop seeing the effect of changes in css. When I "view source" in chrome and check the css, it shows an old version.

When I change the name of both master page and css, I start to receive updated views but that works for sometime and then again I stop getting the CSS updates. Have you faced this problem? How can I fix it? (Its terribly annoying!)

+4  A: 

Your browser is caching the css. If you force a refresh with F5 that should display any changes.

blu
Thanks a lot. It **did** solve my problem. It was like hell. I started questioning my learning ability at one point of time. :)
Hemant
+2  A: 

It's very possible that css is being cached in your browser, so simply clearch browser cache, it should help

Tadeusz Wójcik
+6  A: 

I think this may be a browser cache issue. In in IE and FF I usually do Ctrl + F5 or Ctrl + Refresh button. Also you can manually clear the cache. For IE you can use the IE Dev Toolbar and for Firefox there is Firebug with both you can clear the cache easily. Not sure about chrome, sorry.

Sayed Ibrahim Hashimi
Thanks for your answer. Its a good one but other guy was first to point out the cache issue so accepted that one. You get my vote though :) Thanks again.
Hemant