框架 4.0 Asp.net 应用程序
当我运行代码时,出现了一个错误:“'RangeValidator' 的 MaximumValue 属性的值 '999.9999' 无法转换为类型 'Currency'。”
以下是我的代码:
<asp:RangeValidator Runat='server' ControlToValidate='textEdit'
MinimumValue='0.0001'
MaximumValue='999.9999' Type='Currency'
ErrorMessage='Should be between 0.0001 and 999.9999' id="idValidtor"
display='None' />
请问货币价值小数点后面不能超过两位吗?如果是,我该如何解决这个问题呢?