Masked Textbox validation
-
How can i validate a masked text box with out accepting any blank spaces. When i custom validate a masked textbox by giving 0 or 9. it is accepting spacebar as well.
Mohan86 wrote:
validate a masked text box with out accepting any blank spaces
What do you mean by validate a masked textbox? If it's a masked textbox it already is customized to accept certain formatted value.
Mohan86 wrote:
When i custom validate a masked textbox by giving 0 or 9. it is accepting spacebar as well.
If you are using existing masked textbox(someones custom made), then look at the source code and handle it. If you are making one yourself, then handle the issue. Regex or Javascript can be used to handle it. Currently, it sounds like when you use 0 or 9, the masked expression used is faulty and accepts space.