如何为单个属性客户端生成不同的错误消息 [英] How to Generate different Error Message for single Property Client Side

查看:62
本文介绍了如何为单个属性客户端生成不同的错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如果我们在属性中应用Validator,那么我们只能添加一条带有客户端属性的错误消息。



但我们可以处理并显示来自服务器端的不同错误消息。

我们需要为属性创建一个新规则,以显示要显示的新错误消息在不同的条件下。



在具有不同条件的属性中是否有任何方法可以显示不同的错误消息?

Hi Everybody,

If we apply a Validator with the Property then we can add only one error message with the Property for Client Side.

But we can handle and show different error messages from server side.
We need to create a new rule for the property for showing the new error message to display in different condition.

Is there any way for different error message in a property with different condition?

推荐答案

这篇关于如何为单个属性客户端生成不同的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆