Ask DOT NET Expert

What are major events in GLOBAL.ASAX file?

The Global.asax file, which is derived from the HttpApplication class, maintains a pool of the HttpApplication objects, & assigns them to the applications as needed. The Global.asax file contains the following events as shown:

Application_Init: It is fired when an application initializes or it is first called. It is invoked for all the HttpApplication object instances.

Application_Disposed: It was fired just before an application is destroyed.It is the ideal location for cleaning up the previously used resources.

Application_Error: It was fired when an unhandled exception is encountered within the application.

Application_Start: It fired when the first instance of HttpApplication class is created. It allows you to create an object that is accessible by all the HttpApplication instances.

Application_End: It fired when the last instance of HttpApplication class is destroyed. It is fired only once during an application's lifetime.

Application_BeginRequest: It is fired when an application request is received. It is the first event that fired for a request, which is often a page request (URL) which a user enters.

Application_EndRequest: This is the last event fired for an application request.

Application_PreRequestHandlerExecute: It is fired before the ASP.NET page framework begins executing an event handler like a web page or Web service.

Application_PostRequestHandlerExecute: It is fired whenever the ASP.NET page framework has finished executing an event handler.

Applcation_PreSendRequestHeaders: It is fired before the ASP.NET page framework sends HTTP headers to the requesting client (browser).

Application_PreSendContent: It fired before the ASP.NET page framework send content to a requesting client (browser).

Application_AcquireRequestState: It Fired when the ASP.NET page framework receives the current state (Session state) related to that current request.

Application_ReleaseRequestState: It fired when the ASP.NET page framework completes execution for all event handlers. Thus results in all state modules to save their current state of data.

Application_ResolveRequestCache: It fired when the ASP.NET page framework completes an authorization request. This allows caching modules to serve the request from the cache, thus bypassing the handler execution.

Application_UpdateRequestCache: It fired when the ASP.NET page framework completes handler execution to allow the caching modules to store responses to be used to handle the subsequent requests.

Application_AuthenticateRequest: It fired when the security module has established the current user's identity as valid. In that point, the user's credentials have been validated.

Application_AuthorizeRequest: It fired when the security module has verified that the user can access all resources.

Session_Start: Fired when a new user visits the application Web site.

Session_End: Fired when a user's session times out, ends, or they leave the application.

DOT NET, Programming

  • Category:- DOT NET
  • Reference No.:- M9508896

Have any Question?


Related Questions in DOT NET

Assignment specificationthis assignment is split into two

ASSIGNMENT SPECIFICATION This assignment is split into two documents. 1. Assignment Specification. This document contains the specification for what you will be required to do. 2. Assignment Addendum. This document conta ...

Scenariouser modelling inc would like to organize a series

Scenario User Modelling Inc. would like to organize a series of conferences focusing on research topics in the area of user adaptive systems and personalization. They need to organize annual conferences for researchers a ...

Casewe sell pdfs from our site and pdfs can be ordered from

Case We sell pdf''s from our site and pdfs can be ordered from the site by selecting a book, putting it in a shopping cart, then signing in with a password or as a guest, and then checking out. For some reason, when a pu ...

Summarythis assessment requires you to develop a simple

Summary This assessment requires you to develop a simple text editor with a basic offline user login. It is a windows application that will allow new uses to be added, existing users to login, and to create/save/edit tex ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As