How to add dynamic validation on model using data annotation
I have a textbox in mvc. I want to validate textbox dynamically using data annotations on the bases of language id i.e. 1 or 2. 1 represents English and 2 represent Hindi. I have pass value in textbox in English. I do not want enter special character. Same as I have pass value in textbox in Hindi. I want enter special character. Please Provide solution with example.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Ramesh PalanivelRank #372 · 6.8K reputationPosted Nov 22, 2017, 8:39 PM EST