mandatory text fields

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
 
K

Karl Seguin

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
 

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

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top