I want to know what is the code used to generate serial number a 14-digits
please don't be late to respond to me
thank you very much
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
GustavoRank #1,990 · 732 reputationPosted May 24, 2010, 5:26 PM EDT
You want a Serial Number that is 14 digits?
Dont you have to get the starting number from somewhere?
Then you just increment it and save it somewhere.
I think you need to explain more on what you need.
Kirtan PatelRank #292 · 8.6K reputationPosted May 24, 2010, 8:36 PM EDT
private void button1_Click(object sender, EventArgs e)
{
Random r = new Random();
string serial = "";
for (int i = 0; i < 14; i++)
{
serial += Convert.ToChar(r.Next(65, 90)).ToString();
}
textBox1.Text = serial;
}
CrishRank #1,487 · 1.1K reputationPosted May 24, 2010, 9:39 PM EDT
pl go through below link for you solution
http://www.c-sharpcorner.com/UploadFile/mahesh/RandomNumber11232005010428AM/RandomNumber.aspx
Don't forget to Mark Do you like this Answer that solved your problem!
Mesha23 reputationPosted May 25, 2010, 4:38 AM EDT
thank you for your cooperation