Test with 2 Users: Button value changes automatic

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Phil (chip_at_20min.ch)
Date: 10/01/04


Date: 30 Sep 2004 23:00:11 -0700

Hello

I have a strange behaviour.

I have a datagrid, with articles that have to be produced today or the
day after. In this program one can see the articles, that have already
been planned (just for control). Now it can be, that the planner has
realised that he planned something wrong for this article. So he has
the possiblity to lock it with a button called "lock", which changes a
status in the Database. When he has changed his plan, he can klick
again on the button, which now has the value "unlock". This works
well.

The problem is, that this ASP.NET programm is used by more then one
planner. When an other planer also klicks on the same "lock"-Button
(because he hasn't refreshed the page and can't see that the button
now has the value "unlock") nothing should happen, because it is
already locked. But the strange thing is, that the value sent back of
this button is now not "lock", but "unlock"?! Somehow Microsoft is
trying to be more intelligent, that is ought to be. Because it should
send back "lock", but somehow the program realises, that on the other
computer the Status of the button has changed to "unlock". How can
this happen and how can I prevent this?

BTW I don't use any sessions. So that shouldn't be the problem.

Thanks

Phil



Relevant Pages

  • Re: SetPixel() / GetPixel() for Format64bppArgb in VB using LockBits
    ... A performance boost can probably be had if you only lock the one pixel of ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Historical operation of canals in Holland during the 1600s
    ... I had searched wikipedia but your link got me to articles I hadn't found. ... I've not found direct answers to my questions for Amsterdam but I have learned that canal and lock technology was very sophisticated by 1600. ... the operation is much different--there is no tidal swing at Amsterdam because the Zuiderzee is diked off and pumps are used to exchange water in the canals. ...
    (sci.geo.hydrology)
  • Re: Locking techniques
    ... > There is a MSR publication that seems to approve the use of lockin ... possibility that other code will lock on the same reference. ... I'm sure there are plenty of articles which use lock- but there ... Personally I think it was a mistake making all reference types have ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: My way to check if a progam is already running
    ... it updates article numbers and writes these immediately back to a config file. ... started or did something) and get the same articles again. ... If it has a counter in RAM, it also has a lock on the ...
    (comp.os.linux.development.apps)