title: ASP.NET button event not firing when using modelpopupextender
body: <p>I have one Panel that is linked to a ModelPopupExtenderand there is a button inside the first panel. When I click the first panel's button I want it to execute the event and inside this event I want to pop up the second Panel which is also linked to a ModelPopupExtender, but when I click the first Panel's button the event does not trigger.</p>
  
  <p>Asp Code :
      </p>
  
  <p>
      </p>
  
  <pre><code>&lt;input type="hidden" runat="server" id="hdnEditBank1" /&gt;
  &lt;asp:Panel runat="server" ID="pnl1" CssClass="Modal450h450w" Height="300px"&gt;
      &lt;table id="tblEditBank1" runat="server"&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td align="right" colspan="2"&gt;&lt;img runat="server" id="imgExitEdit1"  src="../images/Exit_cross.png" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="3"&gt;Name : &lt;/td&gt;
              &lt;td colspan="2"&gt;&lt;telerik:RadTextBox ID="txt1" runat="server" CssClass="largebox"&gt;&lt;/telerik:RadTextBox&gt;&lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;                            
              &lt;td colspan="4"&gt;
                  &lt;asp:Button runat="server" ID="btnClose" Text="Close" OnClick="btnAdd_Close_Click" /&gt;                    
              &lt;/td&gt;
              &lt;td align="right"&gt;
                  &lt;asp:Button runat="server" ID="btnNext" Text="Next" OnClick="btnEdit_Next_Click" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/asp:Panel&gt;
  
  &lt;!-- second panel --&gt;
  &lt;asp:ModalPopupExtender ID="ModalPopupExtender6" runat="server" TargetControlID="btnNext" OkControlID="imgExitEdit1"
      PopupControlID="pnl2" BackgroundCssClass="LoadingBackground" &gt;
  &lt;/asp:ModalPopupExtender&gt;
  
  &lt;input type="hidden" runat="server" id="Hidden1" /&gt;
  &lt;asp:Panel runat="server" ID="pnl2" CssClass="Modal450h450w" Height="300px"&gt;
      &lt;table id="Table1" runat="server"&gt;
          &lt;tr&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;&lt;/td&gt;
              &lt;td align="right" colspan="2"&gt;&lt;img runat="server" id="img1"  src="../images/Exit_cross.png" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="3"&gt;Some Label : &lt;/td&gt;
              &lt;td colspan="3"&gt;&lt;telerik:RadTextBox ID="txtSomeText" runat="server" CssClass="largebox"&gt;&lt;/telerik:RadTextBox&gt;&lt;/td&gt;
          &lt;/tr&gt;        
          &lt;tr&gt;                            
              &lt;td colspan="4"&gt;
                  &lt;asp:Button runat="server" ID="btnIbanClose" Text="Close" OnClick="btnAdd_Close_Click" /&gt;                    
              &lt;/td&gt;
              &lt;td align="right"&gt;
                  &lt;asp:Button runat="server" ID="btnIbanReview" Text="Next" OnClick="btnEdit_Next_Click" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/asp:Panel&gt;
  </code></pre>
  
  <p>The code behind :</p>
  
  <pre><code>protected void btnEdit_Next_Click(object sender, EventArgs e)
  {          
          ModalPopupExtender6.Show();
  }
  </code></pre>
  
  <p>I am thinking it's about the AutoPostBack but I am not sure how to resolve this</p>