How to handle data concurrency in ASP.NET?
- by Itsgkiran
Hi! all
I have an application, that is accessing by number of users at the same time.
Those users, who are accessing the application getting the same id.
Here what i am doing in the code is, when they are creating new user i am getting a max id from DB and increasing the value to 1.
So that they are getting same ID. so that i am facing concurrency in this situation.
How to solve this problem.
I need to display different numbers when the users click on NewUser.
I am using SQL server 2008 and .NET 3.5 and C#.NET
Thanks in advance.