help requires in generating no and storing in backend
-
hi I want to generate a 10 digit number .I am selecting some details from one page submit it takes to me next page where i have to enter details in the form before entering the details a 10 didgit number appears on the page (automatically) after entering the detail if click submit the details along with nummber should stores in the backend I dont know the proper approach for this generating and storing value(asp.net withC#) can anyone have idea and help me out kal13na13
-
hi I want to generate a 10 digit number .I am selecting some details from one page submit it takes to me next page where i have to enter details in the form before entering the details a 10 didgit number appears on the page (automatically) after entering the detail if click submit the details along with nummber should stores in the backend I dont know the proper approach for this generating and storing value(asp.net withC#) can anyone have idea and help me out kal13na13
If you want unique number then use this code
DateTime.Now.ToString("yyyyMMddHH")
Regards R.Arockiapathinathan -
If you want unique number then use this code
DateTime.Now.ToString("yyyyMMddHH")
Regards R.Arockiapathinathan -
yes i want unique n sequential number but it is not but in this format '1000000001' not dat and time format . Any other way to achieve it
You have to store this value in backend somewhere like a separate table and whenever you want to generate this number then get this value from this table and increase 1 and also update this table. I hope this will helpful to you. Regards R.Arockiapathinathan
-
You have to store this value in backend somewhere like a separate table and whenever you want to generate this number then get this value from this table and increase 1 and also update this table. I hope this will helpful to you. Regards R.Arockiapathinathan
The number and details are to be stored in the same table for generation of numbers i am using the below code
DataColumn col=new DataColumn("Number",typeof(System.String));
col.AutoIncrement=true;
col.AutoIncrementSeed =-1;
col.AutoIncrementStep =-1;
Label1.Text="Number is : + 'Number'";but not able to achieve the target of displaying the increasing order of the number Is the above code coreect for generation? Or any good sites for reference thanks in advance