There are quite a few ways to do this ... just depends at which point you want to do the checking. The textbox keypress event, validate event (caveat: only triggered if control you are moving to has 'causesvalidation' property set to true), change event. If you are doing field level validation for basic alphanumeric filtering then the keypress event is a good place to start. If you have more complex needs, the validate event might be more appropriate.
HTH.
Shane.
|