Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本的に、テキスト ボックスが特定の曜日であるかどうかを検証したいと考えています。
データ注釈のいずれかがこれをカバーしていますか、それとも別の場所で for ループの下で実行する必要があるものですか。
後者の場合、これを model.designer.cs またはコントローラー内で実行しますか?
正規表現データ注釈 + mvc の組み込み検証を使用できます。
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.regularexpressionattribute.aspx#Y2063