Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
how to apply fluent validation for server side

here I used client side validation its working fine but i also need to apply server side validation

if (_eaches > _receivedCases) {
  $("#EachesMessage_" + index).css("display", "block");
  $("#EachesMessage_" + index).text("* Shouldn't be greater than received cases");
} else if (_eaches <= _receivedCases) {
  $("#EachesMessage_" + index).css("display", "none");
}
<td>
  @Html.TextBoxFor(x => x.Items[i].ReceivedNumberOfCases, new { @class = "form-control text-right", @id="Received_"+ i ,@onkeyup = "outer.onChangeReceived("+ i +")" ,onkeypress="return fnAllowNumeric()"}) @Html.ValidationMessageFor(x=>x.Items[i].ReceivedNumberOfCases,null,new{@class="text-danger",@id="recivedCasesMessage_"+i })&nbsp;

</td>

<td>
  @Html.TextBoxFor(x=>x.Items[i].DamagedProductsByEaches, new { @class = "form-control text-right Eaches", @id="Eaches_"+ i ,@onkeyup = "outer.onChangeEachers("+ i +")", @min="0" }) @Html.ValidationMessageFor(x=>x.Items[i].DamagedProductsByEaches,null,new{@class="text-danger",@id="EachesMessage_"+i })&nbsp;
</td>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!