|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

March 9th, 2009, 08:50 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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!
|

March 9th, 2009, 09:07 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
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.
================================================== =========
|

March 9th, 2009, 10:20 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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 :)
|

March 9th, 2009, 10:34 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 Posts
|
|
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:
|
|

March 9th, 2009, 04:37 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 151
Thanks: 2
Thanked 32 Times in 32 Posts
|
|
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:
|
|

March 10th, 2009, 07:38 AM
|
|
Registered User
|
|
Join Date: Mar 2009
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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 =) ]
|

March 13th, 2009, 03:32 AM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 23
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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 |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |