Hi, This is my 1st post on daniWeb. First i want to mention that i am complete Ametuer(noob) in programming. just trying to work around with C# and need some help.
Ok my problem is that i have a LISTBOX on my page with Selection mode = MULTI, A label which shows the selected items of listbox, a button that triggers the page.
Adding content in list box like this:
listbox1.item.add("xxx");
Using Event Click on Button like this:
foreach (ListItem my in ListBox1.Items)
{
if (my.Selected)
{
Label1.Text += " " + ListBox1.SelectedValue;
}
}
NOW i'll tell u my problem
1st- When ever i select multi item from listbox. it shows first selected item of the list box 2 times.
sorry if i being stupid..thanks in advance for helping me out