whats happenig inside the global.asax

S

sai

hi all,
I have written the following code in global.asax events and I have kept break points on following events to trace.
protected void Session_Start(Object sender, EventArgs e)
{

Response.Write("Session_Start");

Response.Write("\n");

}

protected void Application_BeginRequest(Object sender, EventArgs e)

{

Response.Write("Application_BeginRequest");

Response.Write("\n");

}

protected void Application_EndRequest(Object sender, EventArgs e)

{

Response.Write("Application_EndRequest");

Response.Write("\n");

}

protected void Application_AuthenticateRequest(Object sender, EventArgs e)

{

Response.Write("Application_AuthenticateRequest");

Response.Write("\n");

}

protected void Application_Error(Object sender, EventArgs e)

{

Response.Write("Application_Error");

Response.Write("\n");

}

protected void Session_End(Object sender, EventArgs e)

{

Response.Write("Session_End");

Response.Write("\n");

}

protected void Application_End(Object sender, EventArgs e)

{

Response.Write("Application_End");

Response.Write("\n");

}

The out put is printed on the page After the "Application_End "event is fired why?

the output is:

Application_BeginRequest Application_AuthenticateRequest Session_Start

Application_EndRequest
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top