asp.net - How to make the boxes in a checkboxlist unchecked by default? -


i've tried looking @ properties asp.net checkboxlist on msdn , searching google , can't seem find way of setting checkboxes unchecked default. missing glaringly obvious solution?

thanks,

by default listitem in checkboxlist should not checked. if have selected property set true checked:

<asp:listitem selected="true">item 1</asp:listitem> 

by default false , should suffice. if need clear checked items on demand can use clearselection method: checkboxlist.clearselection().


Comments

Popular posts from this blog

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

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

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