J
J.B. Moreno
Peter Duniho said:J.B. Moreno said:And nothing would guarantee it if it was a WinForm application deployed
to a Windows 2008 server. [...]
That depends on the deployment. But if the deployment is specifically
some sort of server context where something outside the C# program is
somehow creating the potential for multiple processes, then the answer
to that question is STILL outside the scope of this newsgroup.
He wants to solve a problem, he wants to solve that problem using C#.
Unless the scope of the newsgroup is limited to just questions about
syntax, it's well within the scope of the group.
The OP asked "how do i manage users picking the same number?" -- he is
asking guidance for methodology, no different than asking what design
pattern to use.
He should be told that there are two possibilities: either an error
message when submitting a choice that has already been picked, or
blocking other users from making a choice while giving a particular
user a chance/timeframe to make a decision from the available options.
I am *certain* that you could write a class/interface for doing either
possibility that in no way relied upon the internal workings of
ASP.NET.