calling javascript function from code behind under some condition
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2521352/calling-asp-net-code-behind-function-from-javascript">Calling ASP.NET Code Behind function from Javascript</a><br>
  <a href="http://stackoverflow.com/questions/8102946/using-javascript-function-to-be-called-from-code-behind-under-specific-condition">using javascript function to be called from code behind under specific condition</a>  </p>
</blockquote>



<p>this is a javascript function.</p>

<pre><code>     function openWinContentTemplate() {
     $find("RadWindow_ContentTemplate").show();
     }
</code></pre>

<p>I want to call this javascript function from code behind on button click under condition as:</p>

<pre><code>    protected void button_click()
    {
     if(true)
        //call javascript function here
    }
</code></pre>
