Last post Jun 20, 2007 08:19 AM by Zhao Ji Ma - MSFT
Jun 15, 2007 05:45 PM|vivek_84|LINK
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:-
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???
Jun 20, 2007 08:19 AM|Zhao Ji Ma - MSFT|LINK
It works fine in my test. What browser are you test with?
I think you can set a breakpoint to see if the event handler was hit during postback?