title: Select radio buttons according to dropdown list in asp.net
body: <p>I'm basically trying to bind the dropdown list with the radio buttons. there are 4 options in the dropdown menu according to which the radio buttons should be selected.
  with the first two options, the radio buttons should be active and with the rest of two objects in the dropdown menu, the radio buttons should become inactive.</p>
  
  <p>here is my front end code for dropdown:</p>
  
  <pre><code>&lt;asp:DropDownList ID="ddLType" runat="server" Width="406px" Height="23px"&gt;
  &lt;asp:ListItem Value="Prof"&gt;Professional&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Enterprise&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Maintanence&lt;/asp:ListItem&gt;
  &lt;asp:ListItem&gt;Reporting&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>here is my code for radio buttons:</p>
  
  <pre><code>&lt;asp:RadioButtonList ID="rdoMeapSupport" RepeatDirection="Horizontal" runat="server" AutoPostBack="True" &gt;
  &lt;asp:ListItem Value="1" Text="Yes" /&gt;
  &lt;asp:ListItem Value="0" Text="No" /&gt;                        
  &lt;/asp:RadioButtonList&gt;
  </code></pre>
  
  <p>if we select professional, the radio buttons should be active with yes as the checked option.
  with enterprise, both the buttons should be active but not selected.
  with maintenance and reporting, the buttons should become inactive.</p>