title: AJAX: How to call javascript function from C# code behind AJAX method
body: <p>I need to call a javascript function(<strong>CommentButtonShow()</strong>) from c# code behind ajax method. I am unable to achieve this.</p>
  
  <p>Following is the C# ajax method,</p>
  
  <pre><code>[AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
  public string CheckPassword()
  {
    ScriptManager.RegisterClientScriptBlock(this, GetType(), "ScriptManager1", "javascript:CommentButtonShow();", true);
  }
  </code></pre>
  
  <p>Below is the javascript function,</p>
  
  <pre><code>    function CommentButtonShow() {
          $("#ctl00_mainContentPlaceHolder_divEmailFriends").removeClass('hidden').addClass('show'); 
      }
  </code></pre>
  
  <p>Please help me out.</p>
  
  <p>Thanks.</p>