Pages

Jun 12, 2013

How to create GUID in C# use Asp.net:





Explain GUID:
   GUID is Global unique identifier it can be used namespace
    Using System;
 
Assemble name is: mscorlib.dll
 
Examples:
 
Property method:
 
    public Guid ID { get; set; }   
 
Public Guid ID ()
{
   Guid EmployeeID;
   EmployeeID=Guid.NewGuid();
   Response.write(EmployeeID);
   Response.write(Guid.NewGuid());
} 
 
Output:
 
0f8fad5b-d9cb-469f-a165-70867728950e
7c9e6679-7425-40de-944b-e07fc1f90ae7
 

No comments:

Post a Comment