I have a textbox for entering a currency amount, with a RangeValidator control making sure the value entered is between 1 and 99999999.99.
My problem is the RangeValidator doesn't like the formatted value with the commas and subsequently fails on the validation.
Is there a way to get around that? I want to be able to range check the value, yet still present it formatted when the textbox doesn't have focus. I realize that a CustomValidator could probably work, but I was hoping to get this to work with the RangeValidator.
以上就是Can I get the ASP.NET RangeValidator an onblur/onfocus events to play nice with each other?的详细内容，更多请关注web前端其它相关文章！