How to find control insdie table which is inside gridivew
<p>I have a tricky question to ask..
I want to get the ID of the <strong>ASP control inside a table and the table is inside a gridview</strong>... 
Here's the code to give you a better idea...</p>

<pre><code>    &lt;asp:GridView ID="gvTest" runat="server"&gt;
        &lt;Columns&gt;
            &lt;asp:TemplateField&gt;
                &lt;ItemTemplate&gt;
                    &lt;table width="100%"&gt;
                        &lt;tr&gt;
                            &lt;td&gt;&lt;asp:Label ID="lblTestLabel" runat="server"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                    &lt;/table&gt;
                &lt;/ItemTemplate&gt;
            &lt;/asp:TemplateField&gt;
        &lt;/Columns&gt;
    &lt;/asp:GridView&gt;
</code></pre>

<p>I have no problem getting the <strong>control inside a gridview</strong> and here's the code </p>

<pre><code>function TestFunction(sender, e)   {
    var gridview = document.getElementById('gvTest.ClientID');
    var i = gridview.rows.length - 1;
    var node1 = gridview.rows[i].cells[1].children[0];
}
</code></pre>

<p>But i need to put table inside gridview for formatting issues and when i did it, the controls are not accessible ....
So my question is how can i get the ID of the ASP label (in this case, lblTestLabel") in javascript??
Answers and suggestions are very much appreciated..</p>
