getting client id of a control from variable
<p>I want the client id of an asp.net textbox control(txtTest) in javascript.But the problem here is the control id comes from a variable as shown below</p>

<pre><code>var testName = 'txtTest';
var testCntrl = document.getElementById('&lt;%=' + testName + '.ClientID %&gt;');
</code></pre>

<p>But its throwing </p>

<blockquote>
  <p>CS1012: Too many characters in
  character literal</p>
</blockquote>

<p>Can any one please help....</p>
