Pages

Men

rh

6/17/2012

Get New GUID in C#

 public class ClsNewGUID
    {
        public String GetID()
        {
            String retVal= Guid.NewGuid().ToString("P");
            retVal = retVal.Replace("(", "");
            retVal = retVal.Replace(")", "");
            return retVal;
            
        }
    }

No comments :

Post a Comment