is there a way in codebehind to change the bgcolor in the stylesheet?
Printable View
is there a way in codebehind to change the bgcolor in the stylesheet?
I don't think you can actually access the CSS file like that. It's "wrong" because then the change reflects everywhere. Instead, use client side javascript to set the bgcolor of the body or whichever element you're looking for. Or even better, change the css class attribute you're using for the element to some other css class.
what i'm trying to do is allow users to change the color of all the pages contained in my site by clicking on one of a few color options.