bhargav
bhargav

Reputation: 99

how to solve concurrency problem in asp.net

while two users are editing their data from different location, when both clicks submit button at the same time, one user information is inserted in other user information automatically..

i do not know why this happens..

Need help to solve this issue.

Thnx in advance.

Upvotes: 0

Views: 929

Answers (2)

Episodex
Episodex

Reputation: 4559

Maybe use locking mechanism?

http://msdn.microsoft.com/en-us/library/c5kehkcz(v=vs.71).aspx

Worked fine for me in ASP.NET as far as I remember.

Upvotes: 1

Daniel A. White
Daniel A. White

Reputation: 190935

If you are storing the data in a database, a transaction is crucial.

Upvotes: 2

Related Questions