title: How to check whether UpdatePanel is posting back?
body: <p>Is there a way to determine if an <code>&lt;asp:UpdatePanel /&gt;</code> has performed an Ajax postback similar to how we can use...</p>
  
  <pre><code>if(!Page.IsPostBack) { ...snip }
  </code></pre>
  
  <p>... to determine if a postback from a button submit is taking place.</p>
  
  <p>I'm trying to detect Ajax requests from jQuery, but it's picking up UpdatePanel requests as well which I want to exclude eg...</p>
  
  <pre><code>if (Request.IsAjaxRequest() &amp;&amp; !Page.IsUpdatePanelPostback)
  {
      // Deal with jQuery Ajax
  }
  </code></pre>