B
Bishop
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.Checked = True
chkProfiles.Items.Add(myCheckbox)
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.Checked = True
chkProfiles.Items.Add(myCheckbox)
Next
Any thoughts?