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: 9ef9ece6c13e499db51d1954b4be25f6 (32 characters)

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