title: UpdatePanel does not prevent button from reload page
body: <p>I just wanted to short <a href="https://stackoverflow.com/questions/37989467/how-to-open-another-tab-on-click-without-refresh-current-page-in-asp-net-web-for">this question's example</a> by making a short prototype to test the UpdatePanel functionality to disable ASP.NET page reload on linkbutton click. I have seen this approach in questions like <a href="https://stackoverflow.com/questions/25534985/disable-page-refresh-after-button-click-asp-net">this</a>. In order to test this I have created a new ASP.NET WebForms application, added an ASP LinkButton, surronded by an UpdatePanel. I have added breakpoints on both OnClick and PageLoad events, in Visual Studio .cs file. This is the code in ASP file:</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
  &lt;ContentTemplate&gt;
  &lt;asp:LinkButton ID="LinkButton1" OnClick="OnLinkClick" runat="server"&gt;Click me, no reload, I promise!&lt;/asp:LinkButton&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>And the .cs file code:</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
      {
          //page reload things...
      }
  
      protected void OnLinkClick(object sender, EventArgs e)
      {
          //on click thigs...
      }
  </code></pre>
  
  <p>What happens is that everytime I click on the LinkButton, the first breakpoint is triggered is the PageLoad one and then the OnClick one. I thought that using UpdatePanel will avoid this behavior. </p>
  
  <p>What Am I doing wrong, or why shouldn't I expect the PageLoad not to be invoked? Is this a good way to test if the LinkButton click reloads the page?</p>