asp.net mvc 5 - MVC Foolproof Validation multiple error messages -



asp.net mvc 5 - MVC Foolproof Validation multiple error messages -

i building custom validations viewmodel , have question in regards having multiple error messages.

i wanting create custom validation on string attribute. depending on values beingness compared, wish output different validation messages.

is possible, or need create different custom validation each message displayed?

thanks in advance

yes, possible implement custom validations on properties of model. please refer tutorial create custom validation attribute work need, need write own jquery validation script client side validation in mvc framework way if utilize iclientvalidatable explained in same.

asp.net-mvc-5 custom-validators foolproof-validation validationmessage

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -