Validating Checkbox and Radio Button in C#
<p>I am using c# for coding!</p>

<p>Below is my html for checkbox and radion button</p>

<pre><code>  &lt;input type="radio" style="float: left;" name="documents" id="Checkbox9" value="yes"
                        runat="server" /&gt;
                    &lt;label style="width: 35px!important;" class="checkbox"&gt;
                        &lt;%=GetResourceString("c_HSGStudent")%&gt;
                    &lt;/label&gt;
                    &lt;input type="radio" style="float: left;" name="documents" id="Checkbox10" value="no"
                        runat="server" /&gt;
                    &lt;label style="width: 25px!important;" class="checkbox"&gt;
                        &lt;%=GetResourceString("c_HSGParent")%&gt;
                    &lt;/label&gt;
                    &lt;input type="radio" style="float: left;" cheked name="documents" id="Radio1" value="yes"
                        runat="server" /&gt;
                    &lt;label style="width: 35px!important;" class="checkbox"&gt;
                        &lt;%=GetResourceString("c_HSGStudent")%&gt;
                    &lt;/label&gt;
                    &lt;input type="radio" style="float: left;" name="documents" id="Radio2" value="no"
                        runat="server" /&gt;
                    &lt;label style="width: 25px!important;" class="checkbox"&gt;
                        &lt;%=GetResourceString("c_HSGParent")%&gt;
                    &lt;/label&gt;
</code></pre>

<p>You can see I have two checkboxes and two radio buttons, My problem is that on my submit button click I want to check whether user have checked at-least one checkbox or radio button. It will be good if we can have .NET solution like (customvalidator).</p>

<p>Please suggest!</p>

<p>Thanks</p>
