ASP.NET radio button change
<p>I am trying to figure out why this code doesn't fire the radio button change event.</p>

<p>here's the ASP page code for 2 radio buttons</p>

<pre><code>  &lt;asp:RadioButton ID="rdoButton1" GroupName="Group1" Text="Yes" Value="Yes"  runat="server" OnCheckedChanged="Group1_CheckedChanged" /&gt;
  &lt;asp:RadioButton ID="rdoButton2" GroupName="Group1" Text="No" Value="No" runat="server" OnCheckedChanged="Group1_CheckedChanged" /&gt;
</code></pre>

<p>And here's the code behind:</p>

<pre><code>protected void Group1_CheckedChanged(Object sender, EventArgs e)
{
    if (rdoButton1.Checked) {
        panel1.Visible = true;
    }

    if (rdoButton2.Checked) {
        panel1.Visible = false;
    }
}
</code></pre>
