Data Annotations are used by frameworks such as ASP.
I am developing an ASP.Net MVC 3 Web application with Entity Framework 4.1 and I am getting a bit confused with …
asp.net-mvc-3 viewmodel data-annotations partial-classesI have a value on my model, that must fall within the range of two other values on my model. …
asp.net-mvc asp.net-mvc-3 data-annotations unobtrusive-validationI have used the method described here to localize my data annotation messages and basically it is working fine in …
jquery asp.net-mvc-3 data-annotations unobtrusive-validationI'd like to render a text area for one of the fields in my model. I've tried applying [DataType(DataType.…
asp.net-mvc asp.net-mvc-4 textarea data-annotations multilineViewModel: public class MyViewModel { [Required, StringLength(50)] public String SomeProperty { ... } } XAML: <TextBox Text="{Binding SomeProperty}" MaxLength="50" /> Is there any …
c# wpf xaml data-annotations maxlengthIn the MVC4 template one of the data annotation attributes used is stringlength. For example: [StringLength(100, ErrorMessage = "The {0} must be …
c# asp.net-mvc-4 data-annotationsI'm using the MetaDataType Attribute on my domain model class. It it supposed to move the attribute information from the …
c# asp.net-core data-annotationsI have a few questions regarding custom model binding, model state, and data annotations. 1) Is it redundant to do validation …
asp.net-mvc validation data-annotations modelbinders modelstateAs far as I know the System.ComponentModel.DataAnnotations.DataTypeAttribute not works in model validation in MVC v1. For example, …
c# asp.net-mvc validation email data-annotationsI'm using the CustomValidationAttribute like this [CustomValidation(typeof(MyValidator),"Validate",ErrorMessage = "Foo")] And my validator contains this code public class …
c# asp.net-mvc asp.net-mvc-3 data-annotations customvalidator