Asp.Net MVC
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 12, 2013, 1:21 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 12, 2013, 1:32 AM EST
hi,
Are you taking about creating custom validation attribute?
Please refer following link it might help you.
http://www.c-sharpcorner.com/UploadFile/ff2f08/creating-custom-validation-attribute-for-data-annotation/
mallikharjuna nulu3 reputationPosted Nov 12, 2013, 3:44 AM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 12, 2013, 3:51 AM EST
hi,
I think this can be achieve by using CustomValidation Attribute.
Please refer
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.customvalidationattribute(v=vs.95).aspx
with this attribute you can access other properties of class.
hope this will help you.