It\'s easy to set CssClass in the code-behind, but this runs the risk of overwriting existing classes.
CssClass
I need to set certain elements to ReadOnly
ReadOnly
Can you make your own custom classes? Derive from the ASP.NET Button and add a propert for Read only. Somewhere...probably in the OnPreRender, you can check the new property and set (or not set) the CSSClass property accordingly.