1
Answer

How to add dynamic validation on model using data annotation

Mohd Arif

Mohd Arif

7y
175
1
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.
Answers (1)