I have two buttons on a single form. One is used to submit the form while the other is used to search. I do not want the search button to trigger any server side or client side validation.
How can I do this?
Thanks.
Edit
I'm using Data Annotations on the server to validate, example:
[Required(ErrorMessage = "Institution is required")]
[Range(1, 2, ErrorMessage="Please select an institution")]
[DisplayName("Institution")]
public int InstitutionId { get; set; }
And on the client I'm using this:
<% Html.EnableClientValidation(); %>