Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




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

Download Attachment

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

Share this article   |    Print    |    Article read by 1799 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles: No related article
Related Interview Questions: No related interview question