Hi Every Buddy,
Hope you all r Good.
I faced small Problem Please Give Suggestions .
i need How to develop the Autoincrement Job Ids .Ex:Jd101+CurrentDate . when Page Load Display The textBox Automatically IDs in my Form please Help me...
HowToDeveloptheAutoIncrementvalues inpageload using asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Abhay ShankerRank #375 · 6.7K reputationPosted May 12, 2015, 6:20 PM EDT
Venkat KumarRank #3,138 · 456 reputationPosted May 12, 2015, 9:06 PM EDT
please check this. It may helps you.
Random random = new Random();
for(int i=0; i<1; i++)
{
s=random.Next(10,200); //To specify the range for random numbers
}
refno = Convert.Toint32(DateTime.Now.ToString("ddMMyyyy"))+s;