newBox.Attributes.Add("yourAttributeName", "yourAttributeValue");
EDIT: Sorry I forgot that the checkboxes are a little different, so you need to do:
newBox.InputAttributes.Add("yourAttributeName", "yourAttributeValue");
If you want to access spanaround the checkbox control, this will work the original or you can do:
newBox.LabelAttributes.Add("yourAttributeName", "yourAttributeValue");
source
share