Call Javascript from code behind function in asp.net
<p>How to Call Javascript function from code behind after button click event;</p>

<pre><code> string popupScript = "&lt;script language='javascript'&gt;" +
                         "alert('hai');" +
                       "&lt;/script&gt;";

                ClientScript.RegisterStartupScript(Page.GetType(), "script", popupScript, true);
</code></pre>

<p>I tried above script but not working</p>
