https://github.com/jimschubert/containsattributeexample
An example of using DataAnnotations and jquery.validate.unobtrusive.js from beginning to end in MVC3
https://github.com/jimschubert/containsattributeexample
Last synced: 14 days ago
JSON representation
An example of using DataAnnotations and jquery.validate.unobtrusive.js from beginning to end in MVC3
- Host: GitHub
- URL: https://github.com/jimschubert/containsattributeexample
- Owner: jimschubert
- Created: 2011-08-15T00:29:13.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-08-15T00:59:16.000Z (almost 15 years ago)
- Last Synced: 2025-10-09T01:06:42.228Z (10 months ago)
- Language: C#
- Homepage: http://www.ipreferjim.com/?p=606
- Size: 141 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# DataAnnotations example
This is a fairly simple example of creating a custom ValidationAttribute, registering that attribute with MVC 3 to be compiled into the HTML5 data-val-* attributes, and parsing those attributes on the client side to be validated with a custom function using the jquery.validate.unobtrusive plugin.
This example is code associated with my blog post [here](http://www.ipreferjim.com/?p=606).