Hi I'm trying to create a list of ListBox's in ASP.NET so that I can then iterate it to test if it has been selected.
List<string> con = new List<string>();
List<ListBox> lb = new List<ListBox>();
foreach (Control c in _pH_Outer_MainCri.Controls)
{
if (c is ListBox)
{
con.Add(c.ID.ToString());
lb.Add(c.??);
}
}
I'm getting caught up on that last part. Basically then I can
foreach(ListBox a in lb)
{
if(a.TestSelection() == true )
{
BuildQuery(a);
}
}
Thanks in advance for the help ...