News:

Build a stunning handcrafted website with IT Acumens

Main Menu

Application objects

Started by thiruvasagamani, Aug 18, 2008, 03:06 PM

Previous topic - Next topic

thiruvasagamani

Application objects are common for all users for your application.


This code can be used to set the application variable.


<%

'setting a global application variable

'Good idea to lock and unlock setting these

Application.lock

Application("strAppName") = "Super duper application"

'unlock

Applicaton.unlock

%>






This code is used to retrieve the application variable.






<html>

<head>

<title>

</title>

</head>

<body>

This application is called:

<%

'reading a global application variable

Response. Write Application("strAppName")

%>

</body>

</html>




Remember this can be used by any user.
Thiruvasakamani Karnan