How to validate the condition on dropdownloistfor in mvc razor

hi everybody, int genderid; selectlist genders; html.dropdownlistfor ( genderid ,genders); these are my three values in my drop down that i am unable to validate with fluent validation. ...

Id #7144 | Release: None | Updated: May 10 at 2:16 PM by JeremyS | Created: May 10 at 11:46 AM by Anubhava

ValidatorType Replace- RemoveRule

What type is the following validator: RuleFor(x => x.Surname).Length(1, 140).Unless(MyUnlessMethod); The Replace/RemoveRule methods needs a type, but when I supply it with typeof(LengthValidato...

Id #7143 | Release: None | Updated: May 8 at 9:47 AM by bobduncan | Created: May 6 at 9:11 AM by bobduncan

Client side validation NotEqual and LessThenOrEqualTo

I found on the internet some validation on the client side: for NotEqual: https://gist.github.com/michaeljacobdavis/3281907 and http://hobbscene.com/2012/10/19/fluentvalidation-notequal-client-s...

Id #7138 | Release: None | Updated: Apr 18 at 6:12 AM by wojtpl2 | Created: Apr 4 at 11:39 AM by wojtpl2

EqualValidator and NotEqualValidator fail if property/value don't implement IComparable

New Hi, in the latest (unstable) check in, usage of the new Internal.Comparer fails in these validators if they've been used for object type properties that don't implement IComparable. Suggest ...

Id #7130 | Release: None | Updated: Mar 18 at 10:02 AM by JeremyS | Created: Mar 18 at 6:32 AM by gnomad

Equal does not use the Display Attribute

[Display(Name = "NewPassword", ResourceType = typeof(Labels))] [DataType(DataType.Password)] public string NewPassword { get; set; } [Display(Name = "NewPasswordVerification", ResourceType = typeo...

Id #7125 | Release: None | Updated: Mar 4 at 9:13 AM by stijnherreman | Created: Feb 28 at 11:35 AM by stijnherreman

Validator doesn't check target against Null

Hello, Excuse me, if I'm conceptually wrong but shouldn't validator check that target instance is not null? As far as I can see in code, the check is being made only in explicit IValidator.Valid...

Id #7123 | Release: None | Updated: Feb 12 at 7:29 PM by DmitriMaximov | Created: Feb 10 at 3:31 AM by DmitriMaximov

Allow multiple IValidator for a view model w/ validation rule overrides

I am building an MVC application that will allow things to plug in. One of those things is allow some one to add additional validation to fields beyond what is already configured. I am currently ...

Id #7122 | Release: None | Updated: Jan 28 at 8:54 PM by Syc0F3ar | Created: Jan 28 at 8:54 PM by Syc0F3ar

Doesn't hook up to MVC ApiControllers

Hi, I'm trying to use fluent validation for my MVC 4 WebApi project. But it only seems to work on controllers that are inherited from the Controller type. When I use MyController : Controller...

Id #7116 | Release: None | Updated: Oct 22, 2012 at 11:39 AM by dauciunas | Created: Oct 19, 2012 at 2:06 PM by dauciunas

3.4.6 Destabilize the runtime VerificationException

-- Update: I was able to run outside the debugger and eventually narrowed it down to intell-trace. Disable intelli-trace if you hit this issue in 3.4.6. I'm using FluentValidation 3.4.6, and the t...

Id #7114 | Release: None | Updated: Oct 22, 2012 at 4:21 PM by mbudimir | Created: Oct 13, 2012 at 2:45 PM by KierenH

collection validator issue

We are trying to reuse collection validator, but because of dependency injection we cannot create new object of the validator RuleFor(x => x.Orders).SetCollectionValidator(new OrderValidator()); ...

Id #7113 | Release: None | Updated: Oct 1, 2012 at 12:20 PM by manib | Created: Oct 1, 2012 at 12:20 PM by manib