how to make condition on selection of checkbox in user controler
<p>I have a user control </p>

<pre><code>&lt;input id="check" type="checkbox" /&gt;  
 &lt;label&gt;&amp;nbsp;&lt;/label&gt;  
&lt;fieldset class="clearfix" id="fieldset-exception"&gt;
    &lt;legend&gt;Student Information&lt;/legend&gt;
    &lt;div class="fiveper"&gt;
        &lt;label for="StudentID"&gt;
            Exception ID:
            &lt;span&gt;&lt;%=Html.EditorFor(x =&gt; x.studentid)%&gt;&lt;/span&gt;
        &lt;/label&gt;
        &lt;label for="Classroom"&gt;
            Origination:
            &lt;span&gt;&lt;%=Html.EditorFor(model =&gt; model.Classroom)%&gt;&lt;/span&gt;
        &lt;/label&gt;
        &lt;label for="Subject"&gt;
            Age:
            &lt;span&gt;&lt;%=Html.EditorFor(model =&gt; model.subject)%&gt;&lt;/span&gt;
        &lt;/label&gt;
&lt;/div&gt;
 $('#btnAll').click(function() {
           $('#Details input[type=checkbox]').attr('checked', 'checked');
        });
</code></pre>

<p>I am checking all checkboxes using above code
but I need to make condition here that user need to select atleast one checkbox to do something?
i have other button to go other page based on this checkbox checked?
can anybody tell me how to check that and how to make that condition here?
Thanks
thanks</p>
