Calling javascript Method from Code behind using ScriptManager.RegisterStartupScript
<p>I am using Ajax Toolkit on my content page . I have an Javascript Code which i want to call from the code behind using <code>ScriptManager.RegisterStartupScript</code>.</p>

<p>The javaScript Code is :-</p>

<pre><code>&lt;script type="text/javascript"&gt;
   function disp_confirm() {
       var r = jConfirm("Your Shift End ! Do you still want to Continue ? ")
       if (r == true) {
           jAlert("You pressed OK!")
       }
       else {
           jAlert("You pressed Cancel!")
       }
</code></pre>

<p></p>

<p>How to call this <code>disp_confirm()</code>method of javascript from the code behind using C# .</p>
