This is a fairly straight forward task and you've asked several similar question to this in the past. Perhaps review you previous code and threads.
Create a table with at least an Identity column. Add a new record on page load or whatever event you wish. Then concatenate "ABC- to the identity.
You can also serialize access to a static variable and simply increment the variable on each page load or whatever event. This is not ideal because the variable will reset each time the application starts.
Please share the code that you have written to this point. Explain the expected results and actual results.
Member
293 Points
676 Posts
get unique no for multiple users on same page
Sep 25, 2019 09:11 AM|Gopi.MCA|LINK
Hello
I have one for example dataentry.aspx page
Here on textbox1 i want to create unique no example ABC-01
If multi user access same page then how we can get each unique no on textbox1
Thanking You
All-Star
52971 Points
23571 Posts
Re: get unique no for multiple users on same page
Sep 25, 2019 12:18 PM|mgebhard|LINK
This is a fairly straight forward task and you've asked several similar question to this in the past. Perhaps review you previous code and threads.
Create a table with at least an Identity column. Add a new record on page load or whatever event you wish. Then concatenate "ABC- to the identity.
You can also serialize access to a static variable and simply increment the variable on each page load or whatever event. This is not ideal because the variable will reset each time the application starts.
Please share the code that you have written to this point. Explain the expected results and actual results.