Hi all
C# web apps in VS 2003 .net1.1
Is there such thing as a StyleSheet object that I could instantiate and then
load up a CSS and then refer to the various rules, classes of the css?
I want to use a regular css file but be able to load it up and then apply
the rules and classes to individual objects on the page as desired.
Happy New year to all !
Jeff
clintonG - 01 Jan 2007 20:23 GMT
The closest you'll get to your expressed objective is by using 2.0 with a
Theme, or a StyleSheetTheme and Skins as you can declare a SkinId on any
server-side control.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h
> Hi all
>
[quoted text clipped - 8 lines]
> Happy New year to all !
> Jeff
jeff31162 - 01 Jan 2007 21:09 GMT
That sounds exactly what we are trying to do. We are using object naming
conventions to identify objects and then programatically applying style
classes based on object names. For now we have to stick with 1.1.
Am just looking for more compact means of accessing the style sheet.
Thanks for the tip.
Jeff
> The closest you'll get to your expressed objective is by using 2.0 with a
> Theme, or a StyleSheetTheme and Skins as you can declare a SkinId on any
[quoted text clipped - 17 lines]
> > Happy New year to all !
> > Jeff
Lau Lei Cheong - 02 Jan 2007 02:06 GMT
I'd rather prepare various CSS files for individual themes, then use
javascript's document.styleSheets object(or if you don't need to change the
styles dynamically, use <link> tag) to load the CSS file as needed.
"jeff31162" <jeff31162@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:4DFED809-5C37-42B9-9CBD-73A16CE0B954@microsoft.com...
> Hi all
>
[quoted text clipped - 8 lines]
> Happy New year to all !
> Jeff