Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2007

Tip: Looking for answers? Try searching our database.

CSS object?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeff31162 - 01 Jan 2007 19:22 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.