title: Update panel not working in two asp panel
body: <p>In my ascx page I have two panel,I trying to change these panels inside an update panel.but the page load is going on each click on radio button.here is my code</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  
  
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
  
  &lt;ContentTemplate&gt;
  &lt;asp:Panel ID="Panel2" runat="server" &gt;
  &lt;asp:RadioButtonList runat="server" ID="radioListAnswers"  RepeatDirection="Horizontal" AutoPostBack="true" ClientIDMode="Static" onselectedindexchanged="radioListAnswers_SelectedIndexChanged"&gt;
          &lt;/asp:RadioButtonList&gt;
  &lt;/asp:Panel&gt;
  
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
  &lt;Triggers&gt;
  &lt;asp:AsyncPostBackTrigger ControlID="radioListAnswers" EventName="SelectedIndexChanged"/&gt;
  &lt;/Triggers&gt;
  &lt;ContentTemplate&gt;
  
  &lt;asp:Panel ID="Panel1" runat="server" Visible="false"&gt;
  &lt;div&gt; Thanks&lt;/div&gt;
  &lt;/asp:Panel&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>here is my code behind</p>
  
  <pre><code>void radioListAnswers_SelectedIndexChanged(object sender, EventArgs e)
      {
          panel2.Visible=false;
  panel1.Visible=true;
      }
  </code></pre>
  
  <p>on click on each radio button the page is reloading.How can we over come this.
  Thanks in advance for help.</p>