How to loop through listbox items with LINQ in ASP.NET C#
Normally if you’re looping through a list of items in a ListBox (or CheckBoxList etc) you’d probably do something like this:
[sourcecode language=”csharp”]
foreach (ListItem li in LstBx.Items)
{
if…