p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
I forgot my password Register Now
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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 9th, 2009, 08:50 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 9th, 2009, 09:07 AM
Friend of Wrox
Points: 6,570, Level: 34
Points: 6,570, Level: 34 Points: 6,570, Level: 34 Points: 6,570, Level: 34
Activity: 43%
Activity: 43% Activity: 43% Activity: 43%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 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.
================================================== =========
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old March 9th, 2009, 10:20 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old March 9th, 2009, 10:34 AM
Friend of Wrox
Points: 6,570, Level: 34
Points: 6,570, Level: 34 Points: 6,570, Level: 34 Points: 6,570, Level: 34
Activity: 43%
Activity: 43% Activity: 43% Activity: 43%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,000
Thanks: 5
Thanked 37 Times in 36 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.
================================================== =========
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to gbianchi For This Useful Post:
sayo (March 10th, 2009)
  #5 (permalink)  
Old March 9th, 2009, 04:37 PM
Friend of Wrox
Points: 837, Level: 11
Points: 837, Level: 11 Points: 837, Level: 11 Points: 837, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 151
Thanks: 2
Thanked 32 Times in 32 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to philip_cole For This Useful Post:
sayo (March 10th, 2009)
  #6 (permalink)  
Old March 10th, 2009, 07:38 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 =) ]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7 (permalink)  
Old March 13th, 2009, 03:32 AM
Authorized User
Points: 116, Level: 2
Points: 116, Level: 2 Points: 116, Level: 2 Points: 116, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS, External Style sheets LAHOEFKENS BOOK: Beginning Web Programming with HTML, XHTML, and CSS 5 March 3rd, 2009 08:36 AM
css and style atribute equivalents nerssi Javascript 2 April 11th, 2007 06:26 AM
CSS style sheets paulscarlett BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 3 August 31st, 2004 05:04 PM
CSS style sheets paulscarlett BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 1 August 31st, 2004 09:01 AM
assigning a css style sheet from an element miguel XSLT 7 August 8th, 2004 02:21 PM



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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc