Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ControlValidator on ASP.NET Core?

$
0
0

Hello,

I'm looking for a replacement for ControlValidator on ASP.NET Core since I'm trying to validate the following:

I have a modal window that is used to register or edit new objects (Machines).

These Machines have a property calledNumDevices (Number of Devices).

For the purpose of this project I have to validate that the input wrote for this property is not less than the current value shown in the input field.

Also, it would be necessary to shown a error message claiming that the entered number can't be less than X, being X the current number.

<div class="form-group"><label asp-for="NumDevices" class="col-md-2 control-label"></label><div class="col-md-10"><input id="NumDevices" asp-for="NumDevices" class="form-control" /><span asp-validation-for="NumDevices"  class="text-danger"></span></div></div>



I'm looking to construct this client-side but I'm open to any suggestion. What can I use instead of ControlValidator?

Kind regards,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>