This was driving me crazy too until I found the inputAttributes property.
For example, here is how to add a class directly on the checkbox control without the span nonsense:
myCheckBoxControl.InputAttributes.Add("class", "myCheckBoxClass")
This was driving me crazy too until I found the inputAttributes property.
For example, here is how to add a class directly on the checkbox control without the span nonsense:
myCheckBoxControl.InputAttributes.Add("class", "myCheckBoxClass")