Cas Casal
Cas Casal

Reputation: 51

RangeValidator Problem in ASP.NET

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

One 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

Upvotes: 3

Views: 593

Answers (1)

womp
womp

Reputation: 116977

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.

Upvotes: 1

Related Questions