问题描述
i使用这样的comparevalidator:
< asp:CompareValidator runat =serverid =cmpNumberscontroltovalidate =txtTIN
ValueToCompare =000000000operator =GreaterThantype =Integererrormessage =无效的锡号/>
但它在两种情况下显示错误信息我输入00000000000或12345678912为什么如此。
我正在检查敌人11位数。你建议只比较9位数000000000的价值。
请解释和帮助。
hi ,
i use comparevalidator like this:
<asp:CompareValidator runat="server" id="cmpNumbers" controltovalidate="txtTIN"
ValueToCompare="000000000" operator="GreaterThan" type="Integer" errormessage="Invalid Tin Number" />
but it shows error msg in both condition weather i enter 00000000000 or 12345678912 why so.
and i am checking foe 11 digit no. and you suggest value to compare only 9 digit 000000000.
pls explain, and help.
这篇关于文本框只接受11位数但不能全部为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!