i have registration page i want to generate different alphanumeric id with 10 char unique id.
please provide solution.
string alphanum = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; Random randomNo = new Random(); string uniqueId = new string(Enumerable.Repeat(alphanum, 10).Select(s => s[randomNo.Next(s.Length)]).ToArray());
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.