Open In App

ASP Lock() Methods

The ASP Lock ()Method is used to blocks other clients form changing the variable which is stored in the Application Object. This method is used to ensure that only one client at a time can change their application variable at a Time.

Syntax:



Application.Lock

Parameter Value: This method does not contain any value.

Return Value: It has not return any value.



Example: Below code illustrates that the Lock method prevents more than one client at a time from accessing the variable NumVisits.


This application page has been visited
times!

Article Tags :