Copying items from checkbo to checkbox

Posted by Sanoop under VB.NET on 12/8/2011 | Points: 10 | Views : 1200 | Status : [Member] | Replies : 1
Hi friends
I want the code for copying only checked items from a list of checkbox items and copy it to another checkbox. I want the code for VB not for C#. Can anyone help me out




Responses

Posted by: Bees7000 on: 12/8/2011 [Member] Starter | Points: 25

Up
0
Down
for (int i = 0 ; i <CheckBoxList1.Items.Count ; i++)


if (CheckBoxList1.Items[i].Selected)


CheckBoxList2.Items.Add(CheckBoxList1.Items[i].Text)
CheckBoxList1.Items[i].Selected=false;


Marwan

Sanoop, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response