title: How to Call Jquery from C#
body: <p>I've tried to call the <a href="http://jqueryui.com/dialog/#modal-message" rel="nofollow">dialog-model jqueryui</a></p>
  
  <pre><code>$(function () {
          $("#dialog-modal").dialog({
              modal: true
          });
      });
  </code></pre>
  
  <p>from C# using</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "dialog();", true);
  </code></pre>
  
  <p>but the JQuery is executing after page load and not when I call the ScriptManager.</p>
  
  <p>How can I do that the JQuery function  execute when the <strong>ScriptManager.RegisterStartupScript</strong> it execute in C#?</p>
  
  <p>Apparently I did not explain well: This jquery I call during postback when execute especific function, but is executting in the first postback. I want call the jquery during the code execution. Should be more specific?</p>