Xpode.com        Click here to Print this article.

Guid.NewGuid Method in Asp.Net 2.0 - What is a GUID

This comes under System Namespace. This is a static method that you can call to get a new Guid or generate the new GUID.

A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required.

There is a very low probability that the value of the new Guid is all zeroes or equal to any other Guid. Possessing a unique identifier makes it easy to store and retrieve information.

				
Response.Write("GUID: " + System.Guid.NewGuid().ToString());

It will generate the new GUID after every page refresh.

Click here to check the live working example

For working code, Check the attachment



http://
http://

Contributed by:
Rohit kakria
I am software developer, moderator of xpode.com

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=7

Click here to go on website