Last post Oct 09, 2009 06:54 AM by charles rhamazany
Oct 08, 2009 01:42 PM|charles rhamazany|LINK
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 <link href = "..." > 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.
Oct 08, 2009 02:05 PM|XIII|LINK
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.
Oct 08, 2009 02:12 PM|udkadam|LINK
Try deleting temporary internet files.
If in your application you need to change css related things very often.
you can give auto version number to your file.
If you still not understood, let me know. VersionNum is the variable, or you can get this from configuration file, like web.config.
Oct 08, 2009 02:30 PM|gerrylowry|LINK
Please describe your environment: o/s, vs version, iis or development server, et cetera.
Your experience seems strange: If I am using the
development server and change and save Site.css, Site.Master, or any of my .aspx
files and F5 or Ctrl+F5 the browser, I always see my new changes. The only time
I do not see the new changes is when I forget to save my changes.
If you are deployed to iis, you'll need to move your changed files to your server.
I am guessing that is not the case but am mentioning it because likely most
developers forget that step from time to time.
Oct 09, 2009 06:54 AM|charles rhamazany|LINK
Thank you all.
I just clicked the "Save" Icon, and that was the answer. Everything work fine now. It seems like some authors of books, demos or tutorials forget to mentione when a file need to be saved in order for it to work. I had the same problem with "Linq" until some
one in the community advised me to save the datacontext file.
The page you mentioned in your answer has been removed from the ASP.NET web site. Even if I got the answer to my question, I still believe that it's important to have several useful tools in one's bag. I'll try to find this ressource somewhere else or, eventually,
I'll get back to you.
Thank again to you all.