title: jQuery function not getting called from C# code behind with RegisterStartupScript
body: <p>I have a <code>jQuery</code> function:</p>
  
  <pre><code>&lt;script src="Scripts/jquery-3.1.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
  
          $(document).ready(function () {
              alert("1");
              function hideInfo() {
                  alert("2");
                  $("#h3memberInfo").fadeOut("slow");
              };
          });
  
      &lt;/script&gt;
  </code></pre>
  
  <p>I am trying to call above function from c# as below.</p>
  
  <pre><code> ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alert", "hideInfo();", true);
  </code></pre>
  
  <p>On page load I get <code>alert("1")</code> but <code>alert("2")</code> is never triggered.</p>
  
  <p>What wrong am I doing?</p>