Monday, January 18, 2010

ASP .NET and RangeValidator control - validate input after Change event?

I have a custom control which is bound to a RangeValidator control, but currently it appears to only perform validation after a postback.





I'd prefer it to validate as soon as the user tabs off the control; is there a property of RangeValidator that I need to set, or some other method?ASP .NET and RangeValidator control - validate input after Change event?
You'll need to use javascript or another scripting language to have it respond to an action without a postback. It's a good idea though to keep your server side checks as well, just in case a user has scripting disabled on their browser.

No comments:

Post a Comment