Let say I got the following classes: public class Post { public Date BeginDate { get; set; } [Validate2Date(BeginDate, EndDate, ErrorMessage = \"End date have to occurs after Begin Date\")]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
I have an interesting problem and wanted so see if anyone else has seen this. I\'ve created a MVC 2 site using Visual studio 2010 beta 2. I\'m using linq to sql data model objects with data annotation
So in my mvc project\'s Project.Repository I have [MetadataType(typeof(FalalaMetadata))] public partial class Falala
I recently used ASP.Net MVC with DataAnnotations and was thinking of using the same approach for a Forms project but I\'m not sure how to go about it.
I\'m using ASP.NET MVC and implementing custom validation via custom attributes/data annotations on my models.
I\'m trying to validate a class using Data Annotations but with a metadata class. [MetadataType(typeof(TestMetaData))]
The model validation doesn\'t evaluates the attributes linked to listbox values if you don\'t select at least one of them.
I\'m having problems with getting my custom dataannotations to work, I\'m trying to add a validation-attribute that validates that the UsergroupName for a Customer (CustomerID) is unique.
I am using DataAnnotations in an ASP.NET MVC 1 application to check for Required fields and numerical ranges using the Required and Range attributes.