Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2009, 07:50 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default CSS - editing the css style sheet doesn't take effect immediately

Hello!

I'm trying to continue an existing ASP .NET website, and I've reached quite a frustrating difficulty... I edit the CSS (just changed the colors of Message Boxes and Buttons, for debugging purposes), and see that it doesn't take immediate effect. Once, after reopening Visual Studio 2008, I saw the new colors were applied, but I can't change them again just by reopening VS again... Closing the browser makes no difference either.

I checked the .css links insides the .aspx markup and they all seem to be okay.

How can we apply the changes done to a .css, immediately?

Thanks!

Note: I haven't purchased a wrox ASP book yet... will do so very soon however!
  #2 (permalink)  
Old March 9th, 2009, 08:07 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

mmm.. probably you are debugging the app. and you never stop it and restart the debugging?
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
  #3 (permalink)  
Old March 9th, 2009, 09:20 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank you gbianchi for your quick reply :) I tried both "restart" and "stop" and "play"... It didn't work...

However, I think I just found the solution... The default browser was defined as Firefox, so that was where it was debugging... I typed the same url (localhost...) in IE, where it seems to run fine, with the current .css... (As long as "stop" and "play" is used instead of "restart"!) Not to mention the application is much faster in IE!

Don't quite understand why (besides IE and VS both being Microsoft), but it's working now :)
  #4 (permalink)  
Old March 9th, 2009, 09:34 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Did you tried a force refresh on firefox?? that could be the problem.
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
The Following User Says Thank You to gbianchi For This Useful Post:
sayo (March 10th, 2009)
  #5 (permalink)  
Old March 9th, 2009, 03:37 PM
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Yes i have had this problem. Gonzalo is right, you probably need to do a force refresh, sometimes on the actual css file. I found this bookmarklet is useful, just stick in in your bookmarks toolbar and whack it when you need to refresh the css on a page:
http://dmachi.dojotoolkit.org/recss.html
The Following User Says Thank You to philip_cole For This Useful Post:
sayo (March 10th, 2009)
  #6 (permalink)  
Old March 10th, 2009, 06:38 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks! I didn't know about "force refresh"... That browsers didn't reload modified css or xml fies with recent changes... Ctrl+F5 does the trick in fact!

[The ReCSS seems to be quite nice, however I seem not to be able to use it, neither by refreshing the ReCSS url, nor by clicking on the link with the JScript... Weird, since more users can. Possibly some browser definition against executing scripts... Well, happy to see my css editing being applied now =) ]
  #7 (permalink)  
Old March 13th, 2009, 02:32 AM
Authorized User
 
Join Date: Mar 2009
Posts: 23
Thanks: 2
Thanked 0 Times in 0 Posts
Default

That's never happened to me in VS yet, but happened to me all the time when I was making sites with Dreamweaver. I didn't know about the ctrl + F5 to force a refresh, but I'd clear out my cache and it'd work. I like the force refresh method much better though.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
css and style atribute equivalents nerssi Javascript 2 April 11th, 2007 05:26 AM
assigning a css style sheet from an element miguel XSLT 7 August 8th, 2004 01:21 PM



All times are GMT -4. The time now is 05:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.