Please disregard the two For Statement they're wrong and outputting multiple ListID entries of the same thing. That's the problem and I need help fixing it. The MakeReq function has nothing to do with my problem its just holding values like an array does.
Code:
if (listId.Items.Count != 0 && listCell.Items.Count != 0)
{
for (int a = 0; a < listId.Items.Count; a++)
{
for (int b = 0; b < listCell.Items.Count; b++)
{
lblID.Text = listId.Items[a].ToString();
MakeReq(txtWebUpdate.Text + listId.Items[a].ToString() +
"&ire=1", listCell.Items[b].ToString());
//System.Threading.Thread.Sleep(5);
}
}
}
this is the output i'm trying to accomplish (domain, listID, presetString, listCell)
store.domain.com 101 &ire=1 sec01
store.domain.com 102 &ire=1 sec02
store.domain.com 103 &ire=1 sec03
store.domain.com 104 &ire=1 sec04
store.domain.com 105 &ire=1 sec01
store.domain.com 106 &ire=1 sec02 <- ^ notice how listCell started over for the last two entries. that's because listCell only has 4 entry so it continuously loops applying secIDs until all ListIDs have been processed. So there maybe 500 ListID and only 20 listCell secIDs, which means listCell will just loop within itself applying the same secIDs from the top of its list down, again and again.
it's a simple concept, but you won't believe how many C# programmers are clueless as to what i'm trying to accomplish.