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
 
Recent Posts
Popular Articles

 

© 2013 MUNISH ORACLE DBA& .Net Developer. All rights resevered. Designed by Templateism

Back To Top