Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am writting a vb.net program, and one of the requirements is that the password is 6+ charactors long.. How can I enforce this?

 

I tried doing something like:

 

If Len(password.text) < 5 then call errormsg

 

but the weird thing is that this only works on the 2 try to enter in a password... Like the user presses the submit button with a password 10charactors long, and they still get the error.. but on the 2nd try, if the password is 6+ charactors long it works....

 

:/

 

Should I be checking the pw field a different way?

 

thanks-Lee

  • Administrators
Posted

Could you post more of your code? It is quite hard to identify a problem from just a single line of code.

Also you may want to investigate the regular expression validator control as an alternative - this will allow for client side validation as well as server side validation.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...