Selection List - Mobile Controls RRS feed

  • Question

  • 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???










    Friday, June 15, 2007 5:45 PM

All replies

  • User113421904 posted

    Hi Vivek,

    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?

    Wednesday, June 20, 2007 8:19 AM