Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey everyone,
My question is that, In my app there are 100 of user to access the record from table but my requirement is that if suppose, any one hold particular record none of user(ie remaining 99 user can't) access this record until it's lock is release.

so pls help me

OP's additional information moved from comment below
Sir, I wanted to lock particular integer value either in Sql server or C#

I have RadioButtonList, so if some one checked particular radiobuttonlist and also at the same time another user trying to check this radiobutton then he will get the messages(this radio button hold by other user).
Posted
Updated 19-Nov-12 4:31am
v3
Comments
Nelek 17-Nov-12 5:11am    

1 solution

Use table hints to lock the particular row, page or table. Please refer the following link:
http://msdn.microsoft.com/en-us/library/ms187373.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900