Posts by Felipe • 51 points
3 posts
-
1
votes2
answers265
viewsA: Conditional Client-Side (Jquery) validation
To whom it may interest, I found what I needed, I resolved it as follows: I created a conditional validator that tests a class specific attribute and handles the other class attribute, like this:…
-
2
votes2
answers265
viewsQ: Conditional Client-Side (Jquery) validation
Late! I am performing a complex validation on a specific class with the following code (reduced to simplify): public class Classe1 : IValidatableObject { [Key] public int Id_Classe1 { get; set; }…
-
2
votes1
answer478
viewsQ: Conditional Sub-model Validation MVC 4 C#
I have the following problem (I will simplify the classes to facilitate understanding): public class Class1 { [Required] public int? Id_Estabelecimento { get; set; } public string Nm_Nome { get;…