web 2.0

ASP & Application Object

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

ASP & Application()

.
.
.

Download this script.
Download

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

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.