Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Using CssStyleCollection (or Style class)

Reply
Thread Tools

Using CssStyleCollection (or Style class)

 
 
Gary K
Guest
Posts: n/a
 
      12-08-2004
I am trying to code a new webcontrol that creates it's child controls on
render based on the information in the class. What I would like to do is
provide a method of specifying style similar to the DataGrid, (ItemStyle,
EditItemStyle, etc), so the programmer can set the style of an item in my
class without having to know in advance which type of control it is.
I also realize that I could do this by having my webcontrol store other
webcontrols, but this is a LOT of work & will add a HUGE performace lag to
the control for a small result.
I tried using the CssStyleCollection, but of course microsoft in their
infinite (well, I can't measure it) wisdom have made this class unaccessible
to programmers. I also tried using the Style class, but this does not provide
me with the full style control I desire, (you can't use the 'display' tag for
a start).
Does anyone have any ideas on how I can workaround this dilly?
I'm stumped. I'm just using string properties to specify the style class for
my sub-items, but this is very messy and not good enough for the use of the
control.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS -> CssStyleCollection; Does anyone know how? Arthur Mnev ASP .Net 0 02-02-2004 07:00 PM
WebControl, CssStyleCollection and ViewState Marri Suliez ASP .Net Web Controls 1 01-23-2004 05:15 PM
WebControl, CssStyleCollection and ViewState Marri Suliez ASP .Net Building Controls 4 01-23-2004 05:15 PM
WebControl, CssStyleCollection and ViewState Marri Suliez ASP .Net 1 01-23-2004 05:15 PM
CssStyleCollection As Property Shawn B. ASP .Net Building Controls 1 09-15-2003 03:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57