Find gridview from parent ascx control using client side code
<p>I have a user control call parent.ascx and i load inside a child.ascx. In the child control i have a gridview and i want to access it using javascript from parent ascx control. I am using the following code but it doesnt found it. Any help?.</p>

<pre><code>      var grid = document.getElementById("&lt;%= child_grdrisk.ClientID %&gt;");

   alert(grid.rows.length);
</code></pre>
