title: OnClick doesn't work with Friendly URL
body: <p>I've got a problem. I've got a button with an OnClick handler like <code>protected void button_click(....)</code>. The syntax is OK, but it doesn't work. When I use PostBackUrl, it works. The code in <code>global.asax</code> is: </p>
  
  <pre><code>Regex reg = new Regex("/***/" + result + "/(\\w+)*");
  match = reg.Match(url, 0);
  
  if (match.Groups[1].Success)
  {
      s_table = result;
      s_id = match.Groups[1].Value;
      HttpContext.Current.RewritePath("~/other/***.aspx?id=" + s_id.ToLower() + "&amp;table=" + s_table.ToLower() + "content");
      return;
  }
  </code></pre>
  
  <p>When I click on a button with this code wired up, nothing happens. If I delete this code, the button works. </p>
  
  <p>Button: </p>
  
  <pre><code>&lt;asp:Button runat="server" OnClick="button_click"/&gt;
  </code></pre>
  
  <p>Thank you, MS</p>