Main Contents

Custom Validation Attributes

Schotime @ March 11, 2009

.NET | Comments (1)

In my last post I showed you how to use Validation attributes on your model for validation. Today I will show how you can create your own attributes that can provide custom validation for you. To accomplish this we need to inherit from ValidationAttribute. We’ll create an attribute today that will only allow a "Yes" [...]


book mark Custom Validation Attributes in del.icio.us submit Custom Validation Attributes to digg.com



Feed
26,580 spam comments
blocked by
Akismet