Return a Practically Guaranteed Unique ID in ASP
Category:ASP, HTML and XML
Author:Intelligent Solutions Inc.
Version Compatibility: ASP
This ASP function does not return a globally unique ID, but it does return a random 10 digit string followed by a time string that is precise to the second. For most practical purposes, it will suffice as a unique identifier. If you need to return a true globally unique identifier, you need to encapsulate a call to the CoCreateGUID API function (see http://www.freevbcode.com/ShowCode.Asp?ID=21) into a .dll and call that .dll using Server.CreateObject.
Instructions: Copy the declarations and code below and paste directly into your VB project.