<%@ Application Language="C#" %>
<script runat="server">
void Application_Start(Object sender, EventArgs e)
{
// Code that runs on application startup
}
void Application_End(Object sender, EventArgs e)
{
// Code that runs on application shutdown
}
void Application_Error(Object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
}
void Application_BeginRequest(Object sender, EventArgs e)
{
// Fires at the beginning of each request
}
void Application_AuthenticateRequest(Object sender, EventArgs e)
{
// Fires upon attempting to authenticate the use
}
void Session_Start(Object sender, EventArgs e)
{
// Code that runs when a new session is started
}
void Session_End(Object sender, EventArgs e)
{
// Code that runs when a new session is started
}
</script>