ASP & Application Object
Learn and tutorial asp gets the Http ApplicationState object for the current web request.
ShotDev Focus:
- The current data in the Http ApplicationState class.
Syntax
<% Application[.collection|property|method] %>
Example
asp_application.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Application("SiteName") = "www.ShotDev.Com" Application("Version") = "2010" Application("Creator") = "Mr.Weerachai Nukitram" Response.write Application("SiteName")&"<br>" Response.write Application("Version")&"<br>" Response.write Application("Creator")&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_application.asp
Screenshot
.
.
.
Property & Method
ASP Application.Contents() - Application Object
ASP Application.StaticObjects() - Application Object
ASP Application.Contents.Remove() - Application Object
ASP Application.Contents.RemoveAll() - Application Object
ASP Application.Lock() - Application Object
ASP Application.Unlock() - Application Object
ASP Application_OnStart() - Application Object
ASP Application_OnEnd() - Application Object