N
Nathan Sokalski
There are many situations in which we want to assign certain styles with
multiple CSS properties to a control, quite often the same ones for multiple
controls. Sometimes these styles must be dynamically generated just like the
other parts of the control. Because of the need to have the style
dynamically generated, a static CSS class is not appropriate. I would like
to know if anybody knows of a good way to add a CSS class from within a
custom control. I would like to do this so that I can simply assign the CSS
class to the control. My reason for wanting to do this is so that rather
than have a bunch of controls with style attributes that are huge, they just
have a simple class attribute. This would significantly decrease the
download size for controls that use the same style multiple times. If
anybody knows of a good way to do this, please let me know. Thanks.
multiple CSS properties to a control, quite often the same ones for multiple
controls. Sometimes these styles must be dynamically generated just like the
other parts of the control. Because of the need to have the style
dynamically generated, a static CSS class is not appropriate. I would like
to know if anybody knows of a good way to add a CSS class from within a
custom control. I would like to do this so that I can simply assign the CSS
class to the control. My reason for wanting to do this is so that rather
than have a bunch of controls with style attributes that are huge, they just
have a simple class attribute. This would significantly decrease the
download size for controls that use the same style multiple times. If
anybody knows of a good way to do this, please let me know. Thanks.