I've found a trouble with using Listbox cortrol in Web application.
I've used it previously and all works good.
I can get which elements are selection.
for (int nrp = 1; nrp < lbWorker.Items. Count; nrp++)
{
if (lbWorker.Items[nrp].Selected)
{
if(txtEmailAdre s.Text.IndexOf( lbWorker.Items[nrp].Value)<0)
txtEmailAdres.T ext += lbWorker.Items[nrp].Value
+";";
}
}
In this case the property Selected is set on false for all of the
elements.
Is there any changes in that component in last time.
I use VS 2005.
I've used it previously and all works good.
I can get which elements are selection.
for (int nrp = 1; nrp < lbWorker.Items. Count; nrp++)
{
if (lbWorker.Items[nrp].Selected)
{
if(txtEmailAdre s.Text.IndexOf( lbWorker.Items[nrp].Value)<0)
txtEmailAdres.T ext += lbWorker.Items[nrp].Value
+";";
}
}
In this case the property Selected is set on false for all of the
elements.
Is there any changes in that component in last time.
I use VS 2005.
Comment