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...
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.
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.
UdKadam,
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.
CHARLES RHAM...
Member
19 Points
41 Posts
Change made in the "Site.css" does reflect only in the design view but not when I run my applicat...
Oct 08, 2009 01: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 <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.
XIII
All-Star
175978 Points
21429 Posts
ASPInsiders
Moderator
MVP
Re: Change made in the "Site.css" does reflect only in the design view but not when I run my appl...
Oct 08, 2009 02: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.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
udkadam
Member
88 Points
22 Posts
Re: Change made in the "Site.css" does reflect only in the design view but not when I run my appl...
Oct 08, 2009 02:12 PM|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.
<link href=site.css?vNum='<%=VersionNum%>'>
If you still not understood, let me know. VersionNum is the variable, or you can get this from configuration file, like web.config.
css versioning
gerrylowry
All-Star
16769 Points
4642 Posts
Re: Change made in the "Site.css" does reflect only in the design view but not when I run my appl...
Oct 08, 2009 02:30 PM|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.
CHARLES RHAM...
Member
19 Points
41 Posts
Re: Change made in the "Site.css" does reflect only in the design view but not when I run my appl...
Oct 09, 2009 06:54 AM|LINK
Hi,
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.
UdKadam,
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.
C.R.