I am new to MVC4. I have a MyModel class with "public string myValue" member. I need to validate it's value, on the Client Side (after user enters it in View) against maximum value (maxVal) that is retrieved from database and belongs to the different model (DiffModel). I have tried [Range(..] validation attribute, but it requires const parameters. I am looking now into creating custom validation attribute (cva), but it looks like cva will run on Server side, and Not on client side. Please suggest how to resolve with this situation if it's possible at all. Thank you
Asked
Active
Viewed 302 times