MVC中的模型日期范围验证器 [英] Model date Range Validator in mvc

查看:55
本文介绍了MVC中的模型日期范围验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将下面的url代码用于mvc中的日期验证,但未显示错误.

I use the below url code for date validation in mvc, but it is not showing the error.

" MVC模型范围验证器?"

有什么帮助吗?

推荐答案

您在该问题中的注释说(ErrorMessage ="),将显示空白错误消息,因此您不会看到任何消息.删除此语句以使用默认值或编写自己的语句.

Your comment in that question says (ErrorMessage="") which will give a blank error message and ergo you will not see a message. delete this statement to use the default or write your own.

这篇关于MVC中的模型日期范围验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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