Speedup CheckBoxList search
I want to speed ChechBoxList's getting the selected items, the normal approach is
foreach (ListItem li in checkListBox.Items)
{
if (li.Selected)
{
}
}
but if I've 6000 items in the CheckListBox, that's mean I should go through the 6000 items to know which is selected. Performance POOOOOOR!!!
Is there way to get just selected ItemsCollection ??
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
That was abount the most stupid post I have sent
I think I will edit it out
wish there was a delete button
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
I got this solution too but for some reasons I preferred server side, yes Java Script would be better, Thank you Aneesh_Argent so much :)
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276