I use custom control which creates a span and 2 asp controls with int.
<abc:edf runat="server" ID="testing" ... />
Now my questions is how do I access the asp control within span through span ID in javascript?
I can get to it by
var test = $get('<%=testing.ClientID %>');
alert(test.all.[hard coded client ID of inner asp control].value)
but obviously I don't want to hard code the client ID so is there any better way to handle this?