Major events in global.asax file, DOT NET Programming

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.

Posted Date: 9/22/2012 5:24:20 AM | Location : United States







Related Discussions:- Major events in global.asax file, Assignment Help, Ask Question on Major events in global.asax file, Get Answer, Expert's Help, Major events in global.asax file Discussions

Write discussion on Major events in global.asax file
Your posts are moderated
Related Questions
Full time contractual programming position (mostly scraping, databasing) Project Description: This is a full time contractual role needed for a sports advisory service. We ar

I want Windows 8.1 Metro style app development Project Description: I want Windows 8 & 8.1 metro style app development - Media Player application Skills required are C# Pr

What are different types of caching using in ASP.NET? You can use 2 types of output caching to cache information which is to be transmitted to and displayed in a Web browser:

We have a web based program completed with .NET C# and Microsoft SQL Server. There are some reports requires to be created. Required Skills. - High Proficiency in .NET C#

Printing Triangles - C# Program I need program code for Printing Triangles in C#. Can anybody send me there ideas?

I've some encrypted data list of customers that are stored in a sql server db. These data are encrypted using visual basic, using a specific dll, from what I could see. The work

I need Kinect Developer c++ We are creating a fitting room with Kinnect and I need some questions answered like how to detect if a person turns around, how to make the clothing

I need Programmer to extracting data Project Description: Programmer role A skilled programmer is required to build a standalone module to extract, parse and store in data

i would like to learnd API''s how they works for advance programming in vb.net

Checking for validity of an expression - C# Program Hello can you please provide me some examples regarding to the Checking for validity of an   expression in C#.