Data Annotations are used by frameworks such as ASP.
In ASP.MVC 3, how do I specify the columns and rows for a multiline EditorFor (textarea)? I am using [UIHint("…
asp.net-mvc razor data-annotationsIn my model I have the following DataAnnotations on one of my properties [Required(ErrorMessage = "*")] [DisplayFormat(DataFormatString = "{0:d}")] [DataType(DataType.…
asp.net-mvc data-annotationsI have a .Net MVC 5 application that is using Data Annotations, Entity-Framework Jquery 2.1.3 and Jquery UI 1.11.4. When I render an …
jquery asp.net-mvc google-chrome datetime data-annotationsMy User model has these data annotations to validate input fields: [Required(ErrorMessage = "Username is required")] [StringLength(16, ErrorMessage = "Must be …
c# asp.net data-annotationsGiven the following classes: using System.ComponentModel.DataAnnotations; public class Book{ public Contact PrimaryContact{get; set;} public Contact SecondaryContact{get; …
c# asp.net-mvc validation annotations data-annotationsI have a property in my view model as follows: [Editable(false)] [Display(Name = "Date")] [DisplayFormat(DataFormatString = "{0:yyyy/MM/dd}", …
asp.net-mvc asp.net-mvc-4 data-annotationsI have a class like this: public class Document { public int DocumentType{get;set;} [Required] public string Name{get;set;} […
c# data-annotations requiredfieldvalidator requiredHow would I go about writing a custom ValidationAttribute that compares two fields? This is the common "enter password", "confirm …
c# asp.net-mvc validation data-annotationsSay I have this property in my model: [DisplayName("test")] [Required(ErrorMessage = "required")] public DateTime? SomeDate { get; set; } when you …
asp.net-mvc asp.net-mvc-2 data-annotationsWanting to create custom data annotation validation. Are there any useful guides / samples on how to create them? Firstly: StringLength …
asp.net asp.net-mvc-2 data-annotations