title: URL Rewrite Stops Button Event from firing
body: <p>I have a webform <code>default.aspx</code> that inherits from a master page.</p>
  
  <p>In the master page is a small form with a button that posts back. </p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
      page content here
  
      &lt;asp:Button ID="btnSubmit" runat="server" Text="Call Me Back" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Code Behind:</p>
  
  <pre><code>Private Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click
       'post the data and redirect
  End Sub
  </code></pre>
  
  <p>This works fine, until I add a rewrite into the web.config (re-writes <code>/default.aspx</code> to just <code>/</code>):</p>
  
  <pre><code> &lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Default Document" stopProcessing="true"&gt;
        &lt;match url="(.*?)/?default\.aspx$" /&gt;
        &lt;action type="Redirect" url="{R:1}/" /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>How when I click the button, I get a postback, but the actual button event does not fire. I set a breakpoint on the event handler and it is not hit. Other pages inheriting from from the same master page work fine still.</p>
  
  <p>If I rem out the rewrite the default page fires the button handler.</p>
  
  <p>How can I ensure the button event fires using the re-write</p>