I have this control
I want to remove the
Use this:
object.CssClass= object.CssClass.Replace("MyClass", "");