TextBox validation after 4 chars

  • Thread starter Thread starter Eugenio.Net
  • Start date Start date
E

Eugenio.Net

Hello all
I'm using a button to validade a TextBox but I already saw some websites
that validation is automaticaly after 4 or 5 chars...
How can I validate my textox to call a function???

Thanks in advanced for advices...
 
What do you mean by "automatically"? If you set the Validator's Display
property to Dynamic the validation will be done during the JavaScript onblur
event. If you want the validation to be done after a certain number of
characters, you will have to do it manually (not using a validator) or by
writing your own Control that inherits the BaseValidator class. Depending on
what you are validating for and how often you do the validation will
determine which one is more appropriate. Hopefully this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top