How can I add a simple validation in my code? If value = 0 I don't want the controller to process the form. If anything else is selected except 0, I want the controller to process the form.
@using (Html.BeginForm("GenerateReport", "Admin", FormMethod.Get))
{
<select id="reportId" name="reportId" class="form-control">
<option value="0">Select</option>
<option value="1">Religion</option>
<option value="2">Address</option>
<option value="3">Job</option>
<option value="4">Degree</option>
<option value="7">Age</option>
</select>
<input type="submit" value="Print" id="rlist_type" />
}