|
Generate GUID values in ASP
In ASP, you have a couple ways to create a GUID. One way is by the script below. It uses the
Scriptle type library to generate the value, like this
<%guid = server.createobject _ ("scriptlet.typelib").guid response.write guid%>
As with all Windows GUID operations, this method uses the current system time to create the unique
value. Of course, to take advantage of this technique, you'll need the Scrobj.dll installed on your server
(available in the latest Scripting Engine downloads from the Microsoft MSDN site,
http://msdn.microsoft.com/scripting ).

|