title: PostBack Not Happening For A Radio Button
body: <p>When I check rbEmployee, the postback occurs, but it doesnt for rbBatch. Why is it so.</p>
  
  <p><strong>ASPX:</strong></p>
  
  <pre><code>&lt;asp:RadioButton ID="rbBatch" runat="server" Text="Batch" GroupName="OB"
  CausesValidation="false" AutoPostBack="true" 
  OnCheckedChanged="rbBatch_CheckedChanged"/&gt;
  
  &lt;asp:RadioButton ID="rbEmployee" runat="server" Text="Employee" GroupName="OB"
  CausesValidation="false" AutoPostBack="true" 
  OnCheckedChanged="rbEmployee_CheckedChanged"/&gt;
  
  &lt;asp:UpdatePanel runat="server" UpdateMode="Conditional"&gt;
   &lt;Triggers&gt;
     &lt;asp:AsyncPostBackTrigger ControlID="rbBatch" EventName="CheckedChanged"/&gt;
     &lt;asp:AsyncPostBackTrigger ControlID="rbEmployee" EventName="CheckedChanged"/&gt;
   &lt;/Triggers&gt;
   &lt;ContentTemplate&gt;
     &lt;asp:GridView ID="gvBatch" runat="server"&gt;&lt;/asp:GridView&gt;
     &lt;asp:GridView ID="gvMain" runat="server" visible="false"&gt;&lt;/asp:GridView&gt;
   &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>protected void rbBatch_CheckedChanged(object sender, EventArgs e)
  {
    if(rbBatch.Checked)
     {
       gvBatch.visible=true;
       gvMain.visible=false;
     }
  }
  
  protected void rbEmployee_CheckedChanged(object sender, EventArgs e)
  {
    if(rbEmployee.Checked)
     {
       gvBatch.visible=false;
       gvMain.visible=true;
     }
  }
  </code></pre>