Asp.net calling js from Code Behind
<p>I tried to call js function from codebehind like </p>

<pre><code> &lt;if(result == true)
   MyJsFunction();
</code></pre>

<p>how i can do this?</p>

<p>I tried like </p>

<pre><code>string rowTestHide = @" &lt;script type='text/javascript'&gt;function showSuccessMessage(){
                                showNotification({
                                    type : 'success',
                                    message: 'This is a sample success notification'
                                });    
                            }                                
                        &lt;/script&gt;";
ClientScript.RegisterStartupScript(null,"rowTest", rowTestHide);
</code></pre>

<p>but it doesn't work</p>
