My goal with this blog post series is to provide an end-to-end tour of how RIA Services validation works and how you can leverage its capabilities to build rich, responsive applications. A key factor for making the most of validation is fully understanding when and how RIA Services invokes your...
[Read More]
RIA Services Validation: Attribute Propagation
Since the beginning of the RIA Services project, a primary tenet was to propagate validation rules defined on the server up to the client, integrating the validation directly into the Silverlight UI. This came to fruition with RIA Services v1.0 and you can in fact apply an attribute to your...
[Read More]
RIA Services Validation: Custom Reusable Validators
We just covered Custom Validation Methods, where we learned how to use CustomValidationAttribute to invoke a static (VB: Shared) method to perform validation. Let’s talk about an alternate approach to custom validation though: creating custom, reusable validators by deriving from ValidationAttribute. While it’s true that the custom validation methods used...
[Read More]
RIA Services Validation: Custom Validation Methods
In our last installment, we learned about the standard validators that ship in the System.ComponentModel.DataAnnotations assembly. RequiredAttribute, RangeAttribute, StringLengthAttribute, and RegularExpressionAttribute all derive from ValidationAttribute and cover many common validation scenarios. Every system has its own business rules though, and therefore it’s imperative that RIA Services allows you to create...
[Read More]
RIA Services Validation: Standard Validators
RIA Services offers powerful features for flowing validation from your entity model all the way up to the Silverlight UI. In fact, flowing your validation rules from the server into your form controls was one of the primary tenets of RIA Services V1, and our team did the work of...
[Read More]