How to change properties of custom control?

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?

  • Answer:

    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.

Master β, Destroyer Of Whorls at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.