How to handle data concurrency in ASP.NET?
Posted
by Itsgkiran
on Stack Overflow
See other posts from Stack Overflow
or by Itsgkiran
Published on 2010-03-25T13:45:54Z
Indexed on
2010/03/25
13:53 UTC
Read the original article
Hit count: 298
concurrency
|ASP.NET
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.
© Stack Overflow or respective owner