I am using the "New" number textbox mode that is available for sites running .NET 4.5 and I am attempting to validate user input with the asp.net validation controls. I am able to validate that the number chosen falls within a specified range (1-254) with the following REGEX expression:
^([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|2[5][0-6])$
This expression should also validate that the input is of numeric value and does not contain characters. For some reason the validation for the range works appropriately, but if I input "A" or any other character string it will return as valid.
If I remove the TextMode="Number" property from the textbox everything works as it should. Has anyone else run across this bug?
If I access the site in an older browser which ignores the new textbox textmode, validation works appropriately.