That does not create a CSS class, it simply adds CSS properties to the
control's style attribute. I am looking to create a CSS class that could be
used the same way as the following:
<style type="text/css">
.myclass{width:100px;}
</style>
Any classes that would be generated would have more CSS properties than
this, but the point is to be able to use the class attribute rather than the
style attribute.

Signature
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
On Dec 23, 4:56 am, "Nathan Sokalski" <njsokal...@hotmail.com> wrote:
> 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
[quoted text clipped - 15 lines]
> Nathan Sokalski
> njsokal...@hotmail.comhttp://www.nathansokalski.com/
There is a Style Class that represents the style of a web server
control
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.style.aspx
Example: Button1.Style.Add("width", "100px");