title: Button OnClick method not being executed ASP.NET
body: <p>I have a simple web form page with a button. I've tried to set up my button as such:</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CompletePurchase.aspx.cs" Inherits="Something.Something" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"&gt;
      &lt;h2&gt;Click!&lt;/h2&gt;
      &lt;asp:Button ID="ConfirmBtn" runat="server" Text="Confirm" OnClick="ConfirmBtn_Click1" /&gt;    
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>And in my code behind:</p>
  
  <pre><code> protected void ConfirmBtn_Click1(object sender, EventArgs e)
          {
              //do something
          }
  </code></pre>
  
  <p>I've breakpointed the code behind but it is never hit. Considering this seems like such a basic function of ASP.NET, I have no idea what could be going wrong. Any help appreciated.</p>