I need to do some model level checking on the MVC 3 edit page. (To be specific, I need to confirm that field A or field B is populated, but not both and not both.)
I want to perform client-side validation as well as server-side validation, which means either using remote verification or implementing duplicate verification code. I `m alright too.
I read several posts stating that you copied your own model-level validation on the server side, but none of them are also involved in client-side validation. (I don't know - I'm sure someone out there can tell me if it is easy to check client-level validation using jQuery validation.)
I also read about implementing your own remote check from scratch, which you might have to do, since the Remote attribute is only a property level.
I read this question , which is identical to mine, but the only link that really is in place does not seem to say what the respondent says.
So my question is: is there a simple, relatively low-cost way to implement level checking at the server + client level with or without a remote component? And is there a good blog post or webpage where this is explained?
source share