Passing asp.net values to JavaScript function
<p>I need to pass the TextBox control to the JavaScript function. How do I do it</p>

<p>ASP.NET</p>

<pre><code>OnClick="PassVal('&lt;%= TextBox1.ClientID %&gt;')"
</code></pre>

<p>JavaScript</p>

<pre><code>&lt;script type="text/javascript"&gt;
        function PassVal(ctrl, e) {
            alert(ctrl);
        }
&lt;/script&gt;
</code></pre>
