I have used dynamic stylesheets in a few places, it goes something like this
:
create the style sheet data - cache it somewhere -
session/application/cache/disk/...
reference the stylesheet in your page
write an http handler to catch the request for the stylesheet, retreive it
from the appropriate cache and serve it back.
of course if you are writing the .css to disk then the handler isn't
necesarily required
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:us**************@TK2MSFTNGP04.phx.gbl...
"shapper" <md*****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I need to create the stylesheet at runtime.
Wow!
Anyway, do you know how to create the stylesheet at runtime?
Same way you would create any other text file:
http://aspalliance.com/152_How_to_Cr...le_in_ASP_NET_
And one more thing: what about adding the stylesheet, created at
runtime, to an existing CSS file?
Well, you'd have to open the existing CSS file, append the text from the
newly created CSS file into it, and save the existing CSS file.
Are you *really* sure you want to do this...?