regularexpression validator on postback

N

Nicola Farina

Hi all,

i've a form with a textbox that user "must" fill with a password. I want
to check if there's a password inside, and if it's between 6 an 8 chars.

I've placed a regularexpression validator pointing this textbox and with
the following expression:

\w{6,8}

but when i post the form, no check validation on this control appear!!!
Infact, i've notice that this expression check the textbox only if
there's at least one char.

How can I do?

thanks.

Nicola
 
S

Siva M

Attach a RequiredFieldValidator control to the text box in addition to the
regular expression validator.


Hi all,

i've a form with a textbox that user "must" fill with a password. I want
to check if there's a password inside, and if it's between 6 an 8 chars.

I've placed a regularexpression validator pointing this textbox and with
the following expression:

\w{6,8}

but when i post the form, no check validation on this control appear!!!
Infact, i've notice that this expression check the textbox only if
there's at least one char.

How can I do?

thanks.

Nicola
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top