I found a different answer to this, you can use the property
MyCheckBox.InputAttributes["class"] = "myClass";
to assign a class directly to an asp checkbox from the codebehind. Just noting this since I found this post through Google and the answer specified wouldn't work for me.