I am using ASP.NET MVC with DataAnnotations. I have created the following custom ValidationAttribute which works fine.
I want to add validator attributes to my domain models (in an ASP.NET MVC app), and I\'m trying to decide between 2 frameworks, the Validation Application Block and DataAnnotations. They appears to do
There appears to be something of a hole in the way DataAnnotations works in that a user entering in some text into a field that will go into an int will never reach the DataAnnotations code. It kicks
I\'ve been programming asp.net for, oh, a couple of days now. Here\'s a question I can\'t even begin to figure out for myself.
I\'m trying to read buddy class metadata information for usage outside of the normal asp.net mvc 2 validation process.I thought it would be as simple as saying:
I\'m trying to get setup using the DataAnnotations validator in ASP.Net MVC 2.0 Beta, but with the following model:
I\'m trying to use xVal to validate the registration of a new user. I\'ve ran into a buzz saw when trying to implement the logic that checks to see if the user name that the new user is trying to reg开
I am playing around with the System.ComponentModel.DataAnnotations namespace, with a view to getting some validation going on my ASP.NET MVC application.
I\'m using a generated class as a model, and I wish to add DataAnnotation attributes to some of its properties. As it\'s a generated code, I don\'t want to add the annotations directly. Is there anoth
I\'m validating the properties of a linq to sql entity using DataAnnotations, the properties are validating fine but the Required[ErrorMessage=\"error message\"] ErrorMessage attribute is being ignore