.net - Is there a possibility to assign CssClass to CheckBox within CheckBoxList -


i need assign display style (cssclass) every checkbox within checkboxlist. separately every checkbox. , last requirement have on server side within .net code.

not explicitly. can use attributes:

listitem myitem = checkboxlist1.items[itemindex]; myitem.attributes["bgcolor"] = "lightblue"; 

as far having each checkbox use cssclass, each checkbox listitem , class not support cssclass.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -