I'm trying to find out how to populate a CheckBoxList from code without
using a database.
The following code generates 6 unchecked checkboxes without any text.
Dim x As Integer
For x = 0 To 5
Dim myCheckbox As New CheckBox
myCheckbox.Text = "Test " & x
myCheckbox.Chec ked = True
chkProfiles.Ite ms.Add(myCheckb ox)
Next
Any thoughts?
using a database.
The following code generates 6 unchecked checkboxes without any text.
Dim x As Integer
For x = 0 To 5
Dim myCheckbox As New CheckBox
myCheckbox.Text = "Test " & x
myCheckbox.Chec ked = True
chkProfiles.Ite ms.Add(myCheckb ox)
Next
Any thoughts?
Comment