Allen,
I got it. Here is the code.
Dim myControl1 As Label = FormView1.FindControl("PropertyDescLabel")
Dim myControl2 As Control = FormView1.FindControl("PropDescList")
Dim PropDescList As CheckBoxList = myControl2
Dim i As Integer
Dim j As Integer
Dim myarray As Array = Split(myControl1.Text, ",")
For i = 0 To PropDescList.Items.Count - 1
For j = 0 To UBound(myarray)
If PropDescList.Items(i).Value.Trim = myarray(j).ToString.Trim Then
PropDescList.Items(i).Selected = True
End If
Next
Next
I had forgotten to set the checkbox list properties Data Value field to the proper database id field. Works great now.
Now I am getting a Null Reference Exception error on the array declaration when I click the update link in the edit form template though. I need to iron that out next. Making progress though.
Thanks,
DeWayne