CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 random value

Print topic Send  topic

Author Message
ted hart
Posted: 11/27/2003, 10:04 PM

Hello,

Please help, How would I be able to automatically generate a random value to
be sent via email as a password for newly regsitered user.

Thanks
Ted

DonB
Posted: 11/28/2003, 5:10 AM

Platform?

Using ASP on IIS (Windows 2K), I have relied on this to generate an
identifier for new users:

x =
replace(replace(replace(left(createobject("scriptlet.typelib").guid,38),"}",
""),"{",""),"-","")

The object "scriptlet.typelib" has a ".guid" property that generates a
unique string. The above line trims it down to 38 characters and removes
some hyphens and the outer "{ }" enclosing it. This leaves a hexadecimal
value you could use as the password.

--
DonB

http://www.gotodon.com/ccbth


"ted hart" <ted@hart.com> wrote in message
news:bq6ohv$b61$1@news.codecharge.com...
> Hello,
>
> Please help, How would I be able to automatically generate a random value
to
> be sent via email as a password for newly regsitered user.
>
> Thanks
> Ted
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.