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.