I am trying to assign a CSS class named "checkbox" to my checkbox. I have tried both the .Attribute.Add and the .Attribute.AddAtributes methods.
But I keep getting this:
<span class="checkbox"><input id="_ctl17_cbBrochure" type="checkbox" name="_ctl17:cbBrochure" checked="checked" /></span>
It creates a span around the control with the class name. Whereas I would like it to be like this:
<input class="checkbox" id="_ctl17_cbBrochure" type="checkbox" name="_ctl17:cbBrochure" checked="checked" />
But I keep getting this:
<span class="checkbox"><input id="_ctl17_cbBrochure" type="checkbox" name="_ctl17:cbBrochure" checked="checked" /></span>
It creates a span around the control with the class name. Whereas I would like it to be like this:
<input class="checkbox" id="_ctl17_cbBrochure" type="checkbox" name="_ctl17:cbBrochure" checked="checked" />