Calling a JavaScript code from code Behind
<p>How to call the below JavaScript function:</p>

<pre><code>function mySubmit() {
    document.getElementById('frm').submit();
}
</code></pre>

<p>inside  asp.net code behind function:</p>

<pre><code>&lt;%
if(!isPostBack)
{
    ----I want to call the above JavaScript code here---      
}
%&gt;
</code></pre>
