Calling javascript from codebehind c# & Asp.Net
<p>Am unable to understand why Cannot the below javascript code is not called from code behind</p>

<p>I have a simple javascript block like this</p>

<pre><code>  function callsCox(res) {
    alert(res);
   }
</code></pre>

<p>From my code behind :</p>

<pre><code> ....
 string res="COX23";
 string script = String.Format("callsCox({0})", res);
 this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Cox",script,true);
</code></pre>

<p>Am I missing anything? There aren't any exceptions or errors.</p>
