Data Annotations are used by frameworks such as ASP.
I've a ViewModel which has some DataAnnotations validations and then for more complex validations implements IValidatableObject and uses Validate method. …
asp.net asp.net-mvc asp.net-mvc-3 data-annotations ivalidatableobjectI want as well as Client Side Validation as Server Side Validation. I realized this as the following: Model: ( The …
validation asp.net-mvc-2 data-annotations client-side-validationI'd like to use the data validation attributes in a library assembly, so that any consumer of the data can …
c# validation data-annotationsI am using the RegularExpressionAttribute from DataAnnotations for validation and would like to test my regex. Is there a way …
c# validation unit-testing data-annotations dynamic-dataI'm using the DataAnnotations attributes along with ASP.Net MVC 2 to provide model validation for my ViewModels: public class ExamplePersonViewModel { […
asp.net-mvc localization data-annotationsHow can I set the string validation for a fixed-length string using data annotation ? I want to have a property …
asp.net-mvc validation asp.net-mvc-4 data-annotations client-side-validationI am receiving the following VM on a Web API Post action public class ViewModel { public string Name { get; set; } […
asp.net-mvc asp.net-web-api data-annotationsIn a standard application I have the following: [Required] [DisplayName("Email Address")] public string EmailAddress { get; set; } ...this in turn …
c# .net asp.net-mvc data-annotations multilingualI have the following code in my Model class: [Range(1, 100)] public decimal Price { get; set; } After recent upgrade (I assume) …
asp.net-mvc-4 jquery-validate data-annotations unobtrusive-validationI'm using dataannotations in an MVC2 app and am a little discouraged when trying to use RESX file resources for …
asp.net-mvc data-annotations globalization resx