ASP.NET Globally Unique Identifier Generation

GUIDs are very useful for many tasks on websites. Generate a unique cookie, record identifier, file name, prevent forms from being posted twice, etc...

GUID (Globally Unique Identifier) generator: 6b4c498c18a04b31b686a17400245161 (32 characters)

string guid = System.Guid.NewGuid().ToString("N");
Dim guid As String
guid = System.Guid.NewGuid().ToString("N")