Hi,
I have a textbox and button and other stuff in updatePanel, I place a customvalidator with client and server functions.
When I enter some text in the textbox my validation checks if the text entered has a length more than 3 characters, if not validation fails and error is displayed.
Every thing works fine if I enter 1 or 2 characters meaning: I get error message, and if I put 3 characters or more the page is valid and postabck occurs.
The problem is:
If I enter no text in the textbox, no error message is displayed, actually the client and server validation functions don t even execute. Any idea why?
Please note that I don t want to use RequiredFieldValidator to work around the pb. I want to be able to use the same customValidator to display my error message if no text is entered in the textbox.
Thank you very much.




Reply With Quote