Can I use an array in findcontrol?
<p>Hello I have a <code>DataList</code> that has four lables and they all end with a number 1-4. In my code behind I have a for loop and an array  that I want to set the labels of the <code>Datalist</code> with.</p>

<pre><code>for (int x = 0; x&lt; cartreciept.Items.Count; x++)
{
    DataListItem item = cartreceipt.Items[x];
    string catalogtype = ("select CatalogType From SC Where OrNum=" + OrNum)

    if (catalogtype="TC")
    {    
         ((Panel)item.FindControl("pnlIprintInfo")).Visible = true;
         string scRID = ("Select SCRID From SC Where OrNum =" + OrNum

        for(int y = 1; y&lt;5; y++)
        {
              string lT[y] = (Select LineText From table Where SCartRD =" + scRID + " AND LN=" + y)

              ((Label)item.FindControl("lbl[y]")).text = lT[y];
        }
     }
} 
</code></pre>

<p>So would the <code>((Label)item.FindControl("lbl[y]"))</code> work? most of this code is just pseudo code until I figure the details out. If you need to know anything else I can provide what needs to be known, I am open to other suggestions as well. Thank you to any one who can offer some help.</p>
