User-142556341 posted
Hi Everyone,
I have created a selection list and populated it with data from a ultralite database. This works fine. I set the SelectType of the list to MultiSelectListBox.
Now i want to select items from this box and click a button to add them to a textbox.
Relevant code for button click:-
int cnt;
cnt = SelectionList1.Items.Count;
for (int i = 0; i < cnt; i++)
{
if (SelectionList1.Items[i].Selected == true)
{
TextBox1.Text = SelectionList1.Items[i].Text + TextBox1.Text;
}
}
When i run this, select some items and click the button nothing happens !!!
Can any1 help me with this???
Thanks