Listbox For statement not looping through listboxs
<p>4th time asking this question after trying to apply so fixes. My problem is I have 2 listboxs one holds IDs and the other holds Cell ids. The ID listbox has 10 items (for testing) and Cell boxes have 5 ID. I'm trying to process listId and listCell at the same time creating update links...</p>

<p>example <strong>MakeReq</strong> will create <strong>txtWebUpdate.Text listID listCell &amp;ire=1</strong>, in which is</p>

<pre><code>        store.domain.com/101/sec01&amp;ire=1
        store.domain.com/102/sec02&amp;ire=1
        store.domain.com/103/sec03&amp;ire=1
        store.domain.com/104/sec04&amp;ire=1
        store.domain.com/105/sec05&amp;ire=1
        store.domain.com/106/sec01&amp;ire=1 &lt;- notice how listCell starts over it 
continues to loop applying sections until the ListID is complete.
</code></pre>

<p>here's the code i've been working with. what's happening with my code is that it's only selecting the first item. It's not going to the next item after its done.</p>

<pre><code>        if (listId.Items.Count != 0 &amp;&amp; listCell.Items.Count != 0)
        {
            for (int a = 0; a &lt; listId.Items.Count; a++)
            {
                for (int b = 0; b &lt; listCell.Items.Count; b++)
                {
                    lblID.Text = listId.Items[a].ToString();
                    MakeReq(txtWebUpdate.Text + listId.Items[a].ToString() + 
                        "&amp;ire=1", listCell.Items[b].ToString());
                    //System.Threading.Thread.Sleep(5);
                }
            }
        }
</code></pre>

<p>Please only comment if you can help. I'm almost positive that the problem is the for statement and how it's selecting list items, but I may be wrong.</p>

<p><strong>Edit More Info:</strong> after testing an example/suggestion for @duffp below the problem is definitely with my For statements. What's happening is its counting that I have 5 entries in ListCell and then output one (the same) ListID 5times but with a different ListCell. Can someone help me write it following what I wrong above? </p>
