Questions tagged [foolproof-validation]

MVC Foolproof Validation is a library that complements the Data Annotation validation provided in ASP.NET MVC.

MVC Foolproof Validation is a library that complements the Data Annotation validation provided in ASP.NET MVC.

It's released under the Microsoft Public License.

65 questions
-1
votes
1 answer

can LessThanOrEqualTo from Foolproof validate int?

I try to use LessThanOrEqualTo from Foolproof version 0.9.4518 compare and validate int from another property, and it is not working. however, it works for datetime format just like the example. Here is my code: model: public partial class…
user228
  • 67
  • 2
  • 10
-1
votes
1 answer

Foolproof required value based on Dropdown value

I have discovered the Foolproof library that seems very nice but I am having problems to put it working. I want to create a required field only if the dropdown has the selected value = 7. Simple Model: [RequiredIf("LeadSource_Id","7", ErrorMessage =…
Patrick
  • 2,995
  • 14
  • 64
  • 125
-1
votes
2 answers

How i do Required If validation by function in MVC5

if email exist by function check i want display error how i do it? [RequiredIf(BL.datafuncs.checkIfExist(email) == true, ErrorMessage = "email already exist")] public string email { get; set; }
david
  • 57
  • 2
  • 8
-2
votes
1 answer

Validating more than one field with Fool Proof

Hello I'm using MVC Fool Proof Validation. to validate my model, and i need to use RequiredIfNotEmpty with two fields but i'm getting issues with it Model public class Conexionado{ [DisplayName("Conexión")] …
-2
votes
2 answers

Area of a rectangle foolproof

Who can help me with the area of ​​a rectangle. I can't make foolproof, ie the ban on entering letters and negative numbers.I just can not create a second condition when creating the first that refers to the letters. How can I do this, or I must…
George
  • 3
  • 3
1 2 3 4
5