开发者

RangeValidator Problem in ASP.NET

开发者 https://www.devze.com 2022-12-19 00:09 出处:网络
I was using RangeValidator to validate user input on client side for double values. On开发者_Python百科e of my user said that when he enters 5E-10, my range validator does not understand that number

I was using RangeValidator to validate user input on client side for double values.

On开发者_Python百科e of my user said that when he enters 5E-10, my range validator does not understand that number as a valid double.

What do you suggest me to do?

Thanks, cas


This is a known problem with RangeValidator.

You'll need to use a CustomValidator instead, and manually verify the user's input is within the allowed range - including allowing scientific notation.

0

精彩评论

暂无评论...
验证码 换一张
取 消