title: How to control which JavaScript gets run after UpdatePanel partial postback endRequest?
body: <p>I know I can hook into the client side events to run JavaScript after every partial postback; however, I want to do something like this:</p>
  
  <pre><code>protected void FooClicked(object sender, EventArgs e) {
          ClientScript.RegisterStartupScript(GetType(), "msg", "showMsg('Foo clicked');",true);        
  }
  </code></pre>
  
  <p>I know I could totally hack it with hidden fields and run something after <em>every</em> postback, but there should be a pretty straightfoward way to in a similar fashion to this.</p>