ContainsAttributeExample
An example of using DataAnnotations and jquery.validate.unobtrusive.js from beginning to end in MVC3
Install / Use
/learn @jimschubert/ContainsAttributeExampleREADME
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.
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
