Results 1 to 2 of 2

Thread: Locks

  1. #1
    Join Date
    Dec 1969

    Default Locks

    can you show me how locking implemented in asp ,without setting locks in the retrieved records of the database ?

  2. #2
    Join Date
    Dec 1969

    Default It's a little ugly, but...

    ...you could always use Application.Lock and Application.Unlock around your critical sections.<BR><BR>Note that you must then use these same method calls in the page that might conflict with what you are trying to do! These are "voluntary" locks, meaning that your code must explicitly use them or they don&#039;t do any good. (Exception: If you access any Application variable values in other code, then that other code will wait for the unlock.)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts