Top "Model-validation" questions

Model Validation is ASP.

Array must contain 1 element

I have the following class: public class CreateJob { [Required] public int JobTypeId { get; set; } public string RequestedBy { get; set; } public …

c# .net asp.net-mvc asp.net-mvc-3 model-validation
How to use Html.CheckBox (list) with IEnumerable<T> with validation

I'm working on a page where the user needs to fill in some information and finally make a selection of 1 …

asp.net-mvc validation model-validation
MVC DateTime validation failing

I found a lot of simulair questions but not a good clean solution that is working. I see a lot …

asp.net-mvc asp.net-mvc-3 validation asp.net-mvc-4 model-validation
ASP .NET MVC 4 View containing two partial Views with a form in each

In my MVC 4 application I have an Index View. In this View I have two div tags where a Partial …

asp.net-mvc-4 partial-views modelstate model-validation strongly-typed-view
Best approach for complex model/submodel validation (MVC)

Problem I know there is a lot of ways of doing Model validation within MVC, and there is quite a …

c# asp.net-mvc model-view-controller model-validation validationattribute
Is it possible to use Web API model validation on query parameters?

I am currently trying to write a Web API application where one of the parameters I'd like to validate is …

c# asp.net asp.net-mvc model-binding model-validation
Exclude Fields From Model Validation

Let's say I have a following ViewModel : public class PersonViewModel { [Required] public String Email { get; set; } [Required] public String FirstName { …

c# asp.net-mvc model-validation