Thanks Shawn! 

-----Original Message-----
From: Shawn K. Hall [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 22, 2005 6:59 PM
To: [email protected]
Subject: RE: [ASP] CSS changing on the fly


Hi Gary,
 
> I'm looking for a way to control the color of various elements of a 
> web page using an ASP script to change the CSS file on the fly. I'm 
> thinking of incorporating it into then admin panel for a blog script 
> that I'm using. Anyone know of some code for this?

It's just a matter of using the following header for your
CSS-response-based ASP page:
  Response.ContentType = "text/css"

You should also make sure that you request the client disable caching
(in headers) OR send unique (random) appended strings to the querystring
of the request (url & "?" & rnd()), or else the client will cache the
current CSS and will not see changes.

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/

'// ========================================================
    How come wrong numbers are never busy?




---------------------------------------------------------------------

 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links



 






---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to