asp CompareValidator错误消息发布检查 [英] asp CompareValidator error message publish check

查看:63
本文介绍了asp CompareValidator错误消息发布检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有



I have

<asp:CompareValidator ID="CheckToDate" runat="server" ControlToValidate="ToDateTextBox"

ControlToCompare="FromDateTextBox" SetFocusOnError="true" Display="Dynamic" Operator="GreaterThan"CssClass="ErrorLabel" ErrorMessage="<%$ Resources:GlobalResources, EndDateNotValid %>"Type="Date">
</asp:CompareValidator>





当我的



when my

ToDateTextBox

小于我的

FromDateTextBox



它显示错误结束日期无效

我希望能够检查错误是否已发布在我的C#代码中

因为我想启用/禁用基于它的按钮



谢谢


it shows the err "End Date Not Valid"
I want to be able to check is the error is published or not in my C# code
because I want to enable/disable a button based on it

Thanks

推荐答案

资源:GlobalResources,EndDateNotValid %> 类型 = 日期 >
< / asp:CompareValidator >
Resources:GlobalResources, EndDateNotValid %>"Type="Date"> </asp:CompareValidator>





当我的



when my

ToDateTextBox

小于我的

FromDateTextBox



它显示错误结束日期无效

我希望能够检查错误是否已发布在我的C#代码中

因为我想启用/禁用基于它的按钮



谢谢


it shows the err "End Date Not Valid"
I want to be able to check is the error is published or not in my C# code
because I want to enable/disable a button based on it

Thanks


这篇关于asp CompareValidator错误消息发布检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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