i have below form
@using (Html.BeginForm("register", "users"))
{
<p>
First Name
</p>
<div>
@Html.TextBoxFor(x => x.FirstName)
@Html.ValidationMessageFor(x => x.FirstName)
</div>
</div>
<div class="input_block">
<p>
Last Name <span class="required">*</span></p>
<div>
@Html.TextBoxFor(x => x.LastName)
@Html.ValidationMessageFor(x => x.LastName)
</div>
</div>
<div class="input_block">
<p>
CV <span class="required"> </span></p>
<input type="file" name="Cv" class="w_265" data-val-remote="&#39;Cv&#39; is invalid."
data-val-remote-additionalfields="*.Cv" data-val-remote-url="/Validation/IsUID_Available" />
</div>
}
in the above form all fields other than "CV" field uses "asp .net mvc3 Unobtrusive JavaScript validation for client side validation"
for "Cv" i manually gave the validation attributes (data-val-remote,data-val-remote-url,data-val-remote-additionalfields)
so that the remote validation happens for "Cv", but when i submit the form all the fields are validated except "Cv" field, i mean client side validation is not triggered for "Cv" field.
i am using fluent validation for server side validation
please help me
Thanks
Remote
attribute on Model Class ?? – Furqan Hameedi