How to avoid concurrency control?
-
Hi All, I am writing code in code behind file to generate Unique Id in sql table when the user clicks the Register Button. So there is a possibility of registering more than one customer with in a fraction of second......I that particular situation how to avoid CONCURRENCY CONTROL. Note: I AM WRINTING THE CODE IN ASPX.CS FILE OF BUTTON_CLICK EVENT. Thanking you Mcmilan.
-
Hi All, I am writing code in code behind file to generate Unique Id in sql table when the user clicks the Register Button. So there is a possibility of registering more than one customer with in a fraction of second......I that particular situation how to avoid CONCURRENCY CONTROL. Note: I AM WRINTING THE CODE IN ASPX.CS FILE OF BUTTON_CLICK EVENT. Thanking you Mcmilan.
You could use GUIDs for your unique ID's http://msdn.microsoft.com/en-us/library/system.guid.newguid.aspx[^]