Mohd Arif

Mohd Arif

  • NA
  • 357
  • 45.9k

How to add dynamic validation on model using data annotation

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