title: How do I use RequiredValidator to validate a RadioButtonList in Repeater
body: <p>We have a RadioButtonList control inside a Repeater control with two options, Yes or No.</p>
  
  <p>We would like to force our users to choose a Yes or No before proceeding.</p>
  
  <p>In other words, if a user clicks to submit or in our case, click the Next button to go to the next without selecting either Yes or No, an error needs to be raised letting the user know that s/he must select a Yes or No to continue.</p>
  
  <p>The following code uses RequiredValidator control to handle this but it does not do anything.</p>
  
  <p>Any ideas how to resolve this?</p>
  
  <pre><code>Purchased:&lt;asp:radiobuttonlist ID="rblType" runat="server" ValidationGroup ="stype" RepeatDirection="Horizontal" TextAlign="Right" style="display:inline;"&gt;
                   &lt;asp:ListItem Text="Yes" /&gt;
                   &lt;asp:ListItem Text="No" /&gt;
                  &lt;/asp:RadioButtonList&gt;
                  &lt;asp:RequiredFieldValidator id="RequiredFieldValidator1"
                  ControlToValidate="rblType"
                  ErrorMessage="required"
                  ValidationGroup ="stype" 
                  runat="server"/&gt;
  </code></pre>
  
  <p>Thanks a lot in advance.</p>