locked
get unique no for multiple users on same page RRS feed

  • Question

  • User-807418713 posted

    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

    Wednesday, September 25, 2019 9:11 AM

All replies

  • User475983607 posted

    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.

    Wednesday, September 25, 2019 12:18 PM