mandatory text fields

  • Thread starter Thread starter Srinivas
  • Start date Start date
S

Srinivas

Hi,

If a textbox is being validated using a required field validator then we
need to key in some text before sumbmitting the form. But if we key in a
space character this gets validated to true and the form gets submitted. I
want to make sure that the user enters some text and submit the form, and
not just enter a space character and submitting the form.

Any ideas how to achieve this.

Thanks,

Srinivas
 
Srinivas:
You could certainly achieve what you are looking for with a mix of a
RequiredFieldValidator as well as a RegularExpressionValidator...I'd give
you a regular expression, but what's your meaning of "some text" ??
Numbers? Letters? Punctuation? Anything non space?

Karl
 
Back
Top