June 2002
Intermediate to advanced
816 pages
28h 12m
English
End
Sub Application_OnEnd( ) ‘Event handler logic End Sub
Fired
when the
application is torn down, either when the web server is stopped or
when the global.asax file is modified. The event
handler for this event should be defined in the
global.asax application file.
None
The example below writes an entry to the Application Event log to indicate that the End event has fired.
<Script language="VB" runat="server">
Sub Application_OnEnd( )
Dim EventLog1 As New System.Diagnostics.EventLog ("Application", _
".", "mySource")
EventLog1.WriteEntry("Application_OnEnd fired!")
End Sub
</script>The End event is useful for performing cleanup tasks when the
Application ends, either because the web service stops or the
global.asax file is changed.
Read now
Unlock full access