hi
I want put button in page that when click on this button it create random and uniq number and show it in label...
like:15369874 or 56987426
how I can do it?
Best regards
Neda
Hi nedash,
Please use below code.
C#
Random random = new Random(); int n = random.Next(0, 100000000); Label1.Text = n.ToString("D8");
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.