title: ASP.NET button not firing on click event
body: <p>I am new to Asp.net and my question may not be so professional. I am using the design of <a href="http://udemy.com" rel="noreferrer">Udemy.com</a> in my asp.net web forms project. I put the header and footer of <code>udemy</code> in a <code>masterpage</code>. But when I add a button to one of m web forms the click event will not fire.</p>
  <pre><code>&lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; onclick=&quot;Button1_Click1&quot; Text=&quot;Button&quot; /&gt;
  
  protected void Button1_Click1(object sender, EventArgs e)
  {
      Page.Title = &quot;Sample Text&quot;;
  }
  </code></pre>
  <p>To fix this problem, I deleted all of the scripts from my pages. Also I tried to set <code>CausesValidation</code> to False. But nothing helps.
  Could you help me fix this problem?</p>
  <h3>Update</h3>
  <p>I added the OnClick event to my code. But I still face that problem.</p>