title: ASP.NET Prevent updatepanel in user control from causing main page load to execute
body: <p>I have an ASP.NET Usercontrol that contains an updatepanel. When I fire a postback in the updatepanel, it fires the <code>page_load</code> event of the page containing the usercontrol, but the page does not refresh like it normally would (without using an updatepanel).
  I want to know if I can stop this from happening, and if so, how?</p>
  
  <p>Below is the updatepanel code:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="testControl.ascx.cs" Inherits="WebApplication1.testControl" %&gt;
  
  &lt;asp:ScriptManager runat="server" id="smTest"&gt;&lt;/asp:ScriptManager&gt;
  &lt;asp:UpdatePanel runat="server" ID="updTest" ChildrenAsTriggers="true" UpdateMode="Conditional"&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="btnTest" /&gt;
      &lt;/Triggers&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:Button runat="server" ID="btnTest" Text="test" /&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>