Forum Moderators: mack
I am developing an asp site where I need to generate a unique number with alphabetic characters as user name (eg. M123412001 when other person registering his user name should be M123412002 and next M123412003 etc...) and password (with or without numbers) when one new user is registering the site and this user name and password have to send him to his email address automatically when all these process got over.
I just want to know how to do this using asp with access db?
You should check out the ASP Forum [webmasterworld.com] here for all things ASP!
If you do a search for "asp random password generation" you will get some nice pointers and even some code snippets to do this for you.
I might go so far as to not include ones and zeros OR o's and l's in the password. Save yourself some "I can't log in" hassles.
Hi,
An ASP guru will probably be along in a moment to help you out...However, when you've found out what to do, I would recommend limiting the letters you use to those in the string:
"ABCEFHJKMNPRTWXY"
It should be easy to create a visual basic function that will select one or more random letters from that string.
The reason is that all those letters can be easily distinguished from numbers in virtually any font, and in either upper or lower case.
If you go around creating usernames with letters like "I" in them, half your users will think it's a "1".
Good luck!