Top "Fluentvalidation" questions

Fluent Validation is an ASP.

Conditional Validation using Fluent Validation

What I need is a way to conditionally validate fields depending on if other fields are filled in. Ex. I …

c# .net asp.net-mvc validation fluentvalidation
ViewModel validation for a List

I have the following viewmodel definition public class AccessRequestViewModel { public Request Request { get; private set; } public SelectList Buildings { get; private …

c# asp.net asp.net-mvc-3 fluentvalidation model-validation
FluentValidation: Check if one of two fields are empty

I have this model public class Person { public int Id { get; set; } public string FirstName { get; set; } public string LastName { …

c# .net asp.net-mvc validation fluentvalidation
FluentValidation for When & must?

I am trying use FluentValidation validaton when dropdownlist value is yes and the field must be date. it is working …

c# asp.net-mvc asp.net-mvc-4 fluentvalidation
Fluent validation custom validation rules

I have model: [Validator(typeof(RegisterValidator))] public class RegisterModel { public string Name { get; set; } public string Email { get; set; } public …

asp.net-mvc asp.net-mvc-3 fluentvalidation
FluentValidation rule for multiple properties

I have a FluentValidator that has multiple properties like zip and county etc. I want to create a rule that …

c# fluentvalidation
Validate DateTime with FluentValidator

This is my ViewModel class: public class CreatePersonModel { public string Name { get; set; } public DateTime DateBirth { get; set; } public string …

asp.net-mvc-3 datetime fluentvalidation
unobtrusive client validation using fluentvalidation and asp.net mvc LessThanOrEqualTo not firing

I have the following rules the 1st does work using unobtrusive, client side validation, the second does not any ideas …

c# jquery asp.net-mvc asp.net-mvc-3 fluentvalidation
FluentValidation - Validating a View Model that contains a list of an Object

I am trying out FluentValidation on a project that contains complex view models and I read the documentation here but …

c# asp.net-mvc-3 fluentvalidation
Regular Expression Validator does not validate empty textbox

I would like to validate the textbox for specific text and it must not be blank. But the regular expression …

asp.net regex validation fluentvalidation fluentvalidation-2.0