RegularExpressionValidator Question

S

Samuel Shulman

I want to use the control so users will have to input a string which is at
least 6 characters long

How can I achieve that?

Thank you,
Samuel
 
J

Jared

It might be easier to use;

if(strString.Length < 6)
{
validator.Text = "OK";
else
{
validator.Text = "Fail";
}

Otherwise you would have to use a custom validator and write some
client script to check the length.

Cheers

Jared
 
H

Hans Kesting

I want to use the control so users will have to input a string which is at
least 6 characters long

How can I achieve that?

Thank you,
Samuel

".{6,)" as evaluation expression
(any character, repeated 6 times or more)

Hans Kesting
 

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,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top