Get Controls collections from aspx that contains 2 calls for same ascx
<p>Hey there, I'm in a bit of a pinch and i wold appreciate a little help from anyone.:D</p>

<p>I have a aspx page that registers a ascx control that contains a number of other asp controls.This ascx control is called in 2 places in the same aspx.Something like this:</p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;

&lt;table ID="Tbl1" runat="server"&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;cc1:TagName1 ID="tag1" runat="server" /&gt;
        &lt;/td&gt;            
    &lt;/tr&gt;
&lt;/table&gt;
&lt;Table ID="tbl2" runat="server"&gt;    
    &lt;tr&gt;
        &lt;td&gt;
            &lt;cc1:TagName1 ID="tag2" runat="server" /&gt;
        &lt;/td&gt;
    &lt;/tr&gt;    
&lt;/Table&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>My question is : How can i get in the code behind of the ASCX file the collection of controls that are contained in the "tag1" control and then the collection from "tag2" control ??</p>

<p>I tried something like this:</p>

<pre><code>protected void btn1_Click(object sender, EventArgs e)
        {
            ControlCollection collection = this.Page.FindControl("Tbl1").Controls;
            foreach (Control cont in collection)
            {
                lbl1.Text = cont.ClientID + " ";
            }

            ControlCollection collection2 = this.Page.FindControl("Tbl2").Controls;
            foreach (Control cont in collection2)
            {
                lbl2.Text = cont.ClientID + " ";
            }
        }
</code></pre>

<p>but it cannot find the "Tbl1" and "Tbl2" controls.I suspect this is because i need to indicate the ClientID instead of the "ID", but I have no idea how. 
(the label controls are only for listing the collection of controls found)</p>

<p>If anyone has any idea on how to do this I wold very much appreciate some help.:D</p>

<p>Thanks in advance.</p>
