W
Wayne Wengert
I have a CheckBoxList with 11 items in the collection. I save the checked
item to a SQL DB, A record is created for each item checked for the current
customer.I want to redisplay checks in the fields that contain 1's when I
retrieve the records for that customer but I can't figure out the syntax to
do that? The chkList1.SelectedValue property deselects all other items and
the Items property appears to only accept an index. How can I do something
like:
While datareader1.Read
Select Case Category
Case "Gets Mailers"
cbList1.SelectedValue = "Gets Mailers" <== I really want to say
to check that selection
Case "Store Card"
cbList1.SelectedValue = "Store Card"
.......
End Select
End While
Thanks
Wayne
item to a SQL DB, A record is created for each item checked for the current
customer.I want to redisplay checks in the fields that contain 1's when I
retrieve the records for that customer but I can't figure out the syntax to
do that? The chkList1.SelectedValue property deselects all other items and
the Items property appears to only accept an index. How can I do something
like:
While datareader1.Read
Select Case Category
Case "Gets Mailers"
cbList1.SelectedValue = "Gets Mailers" <== I really want to say
to check that selection
Case "Store Card"
cbList1.SelectedValue = "Store Card"
.......
End Select
End While
Thanks
Wayne