You can use following function to generate new unique ID using C#.
public static string NewUniqueID()
{
return DateTime.Now.ToString("yyyyMMddHHmmss") + Guid.NewGuid().ToString("N");
}
public static string NewUniqueID()
{
return DateTime.Now.ToString("yyyyMMddHHmmss") + Guid.NewGuid().ToString("N");
}
No comments:
Post a Comment