xVal 客户端验证与验证标注
我在表单上使用 MVC 数据注释和 xVal 客户端验证。如何实现像 asp.net 验证标注扩展器这样的东西而不是显示红色错误消息。
Im using MVC data annotation with xVal Client Validation on a form. How do I implement something like the a asp.net validation callout extender instead of display red error messages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有为此的内置功能。您可以修改 xVal javascript 文件,方法是将正常的
"..."
javascript 生成的标记错误消息替换为自定义标记和样式,该消息将看起来像标注扩展器。There is no built in functionality for this. You can modify the xVal javascript file, by replacing the normal
"<span class='field-validation-error'>..."
javascript generated markup error message with custom markup and styling that will look like the callout extender.