Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
Application Object
All Objects
All Properties
Unlock Method
METHOD: Application.Lock
Application.
Lock
The
Lock
method prevents all other users from changing any of the variables in the
Contents
collection of the
Application
object.
Application
objects are designed to be shared among an unlimited number of users. Therefore, you need the ability to allow only one user at a time to make changes and you do this by locking everybody else out.
You can use the
Unlock
method to explicitly remove the
Lock
placed upon the
Application
object. Remember, to completely unlock an object, you must call
Unlock
the same number of times you have called
Lock
. Fortunately, the server will automatically unlock all locks placed on the object when the script times out or the .asp file ends.
Code:
<%
Application.Lock
%>
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information