Brosteins

Developers, Technology Evangelists, Bros.

Tag: mvc

MVC Validation Extensions 1.1.2 Released

I’m pleased to release another update to my MVC Validation Extensions.  This update is once again focused on adding more functionality to the package via the following validation attribute: RequiredIfAnyValue This attribute builds upon the previous update where we created required fields based on another field’s value.  Now we are able to require a field if another field is on…

Share

MVC Validation Extensions 1.1 Released

Tonight I’ve released a small update the MVC Validation Extensions.  In this updated I’ve added a new validation attribute: RequiredIfValue This attribute will cause the property to be required only if the value of the other property is equal to the specified value. Example Usage [RequiredIfValue(“RequiredIntControl”, “15”)] public int? SomeRequiredIfValue { get; set; } In this example SomeRequiredIfValue will be…

Share