How do I access the ASP control within span through span ID?
<p>I use custom control which creates a span and 2 asp controls with int.</p>

<pre><code>&lt;abc:edf runat="server" ID="testing" ... /&gt;
</code></pre>

<p>Now my questions is how do I access the asp control within span through span ID in javascript?</p>

<p>I can get to it by </p>

<pre><code>var test = $get('&lt;%=testing.ClientID %&gt;');
alert(test.all.[hard coded client ID of inner asp control].value)
</code></pre>

<p>but obviously I don't want to hard code the client ID so is there any better way to handle this?</p>
