Check if an ASP.NET CheckBoxList items are Checked or Unchecked

The VB.NET code to checkĀ if an ASP.NET CheckBoxList items are Checked or Unchecked:

Dim i as integer

for i = 0 to checklistbox1.items.count -1
if checklistbox1.item(i).selected = false then
'do something here
else
'do something if they are checked.
end if
next

Advertisements
Tagged , ,

Hide an ASP.NET RadioButtonList using jQuery

$('#<%=rblSearchType.ClientID %>').hide();

Tagged , ,

Disable an ASP.NET RadioButtonList using jQuery

$("#<%=rblSearchType.ClientID%>").find('input').prop('disabled', 'true');

Tagged , ,