1
Reply

How to add dynamic validation on model using data annotation

Mohd Arif

Mohd Arif

Nov 23 2017 1:01 AM
153
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)