我如何使用范围验证器在文本框中设置钱 [英] How I Set The Money In A Textbox Using Range Validator
本文介绍了我如何使用范围验证器在文本框中设置钱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
晚上好;
我有一个响铃验证器,我想用它只是为了钱,所以帮助我
Good Evening all;
I have a rang validator and i want use that for the purpose of only money so help me
推荐答案
参考 - ASP.NET RangeValidator Control [ ^ ]
检查类型
属性值。这些是...
Refer - ASP.NET RangeValidator Control[^]
Check theType
Property values. Those are...
Quote:
指定要检查的值的数据类型。类型包括:
- 货币
- 日期
- Double
- 整数
- 字符串
- Currency
- Date
- Double
- Integer
- String
Specifies the data type of the value to check. The types are:
因此,在 RangeValidator
中,您需要设置类型
属性值为货币
。
So, in RangeValidator
, you need to set Type
Property value as Currency
.
您可以指定最小值
和最大
范围来验证货币
ControlToValidate
=您的文本框名称以验证范围..
you can specify theminimum
andmaximum
range to validate thecurrency
ControlToValidate
= your textbox name to validate the range..
<asp:RangeValidator id="RangeCheck1" runat="server" ControlToValidate="TextBox1"
Type="Currency" Minimum="1.00" Maximum="9999.99" ErrorMessage="Out of range" Display="Dynamic" />
这篇关于我如何使用范围验证器在文本框中设置钱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文