web 2.0

ASP Application_OnEnd() - Application Object

ASP Application_OnEnd() - Application Object Function in the Global.asa file. if application disconnect or end.

ShotDev Focus:

- Application_OnEnd()

Example

global.asa


<script language="VBScript" runat="Server">
Sub Application_OnStart
Set Application("Zip") = Server.CreateObject("Pnvzip.ZipFunctions")
End Sub

Sub Application_End
Set Application("Zip") = Nothing
End Sub
</script>

asp_application_onend.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim sResult
sResult =  Application("Zip").ZipFile(Server.MapPath("MyFiles/shotdev.txt"),Server.MapPath("MyFiles/shotdev.zip"))
Response.Write "Result code :" & sResult & "<br>"
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run

http://localhost/myasp/asp_application_onend.asp

Screenshot

ASP & Application_OnEnd()

.

.

.

Download this script.

Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.