Used for classes Validation Attribute Classes in .NET within the System.
I am trying to use a regular expression to validate a phone number and return an error when an invalid …
c# regex asp.net-mvc jquery-validate validationattributeI was looking for some advice on the best way to go about implementing a validation attribute that does the …
asp.net-mvc-3 validationattributeI want to create a custom validation attribute, in which I want to compare the value of my property with …
c# asp.net-mvc razor validationattributeI've a model kind of complicated. I have my UserViewModel which has several properties and two of them are HomePhone …
c# asp.net-mvc asp.net-mvc-3 data-annotations validationattributeI've been representing an enum within my razor view as a hidden field, which is posted back to an action …
c# asp.net-mvc razor validation validationattributeI created a custom ValidationAttribute that targets a class. This validates correctly whenever I try to call the Validator.TryValidateObject. …
c# validation annotations validationattributeProblem I know there is a lot of ways of doing Model validation within MVC, and there is quite a …
c# asp.net-mvc model-view-controller model-validation validationattributeI have created a custom CompareLessThan validation attribute by copying the ASP.NET MVC 3 CompareAttribute and instead of checking for …
asp.net-mvc validation client-side-validation validationattributeI tried to create a custom ValidationAttribute: public class RollType : ValidationAttribute { public override bool IsValid(object value) { return false; // just …
c# asp.net-mvc-3 validationattributeI want to create custom client-side validator, but I want define validation rules via Data Annotations attributes at business logic …
c# asp.net asp.net-mvc data-annotations validationattribute