Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
foreach (object o in listboxvotersemail.SelectedItems)
{
}


not support SeletedItems Command.............
wat can i do any one help me
Posted

The code above should not give any errors. Please provide some more details so that someone can answer your question.
 
Share this answer
 
SelectedItems property of a listbox (Windows app) has implemented IEnumerable interface, so you will be able to use foreach while iterating it.
Also there is no such property AFAIK for ListBox in Asp.Net.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900