Major events in global.asax file, DOT NET Programming

Assignment Help:

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.


Related Discussions:- Major events in global.asax file

Mention the execution process for managed code, Mention the execution proce...

Mention the execution process for managed code. A piece of managed code is executed as follows:     Choosing a language compiler     Compiling the code to MSIL     Com

I want a c# windows app, I want a C# Windows App Project Description: ...

I want a C# Windows App Project Description: Windows App written in C# that can: Check for Internet connection Load dynamic web site If Internet connection drops rec

Assign page specific attributes, How do we assign page specific attributes?...

How do we assign page specific attributes? The Page attributes are specified by using the @Page directive.

What is cyclomatic complexity and why is it important, What is cyclomatic c...

What is cyclomatic complexity and why is it important? Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally calculate t

Live chat similar to alibaba seller or buyer chat, Live Chat Similar to Ali...

Live Chat Similar to Alibaba seller/ buyer chat Project Description: I want someone to design and implement for us a live chat program that will be used on our ecommerce webs

Define assembly-types of assembly, Assembly: 1) Assembly is a unit of d...

Assembly: 1) Assembly is a unit of deployment such as EXE or a DLL. 2) An assembly consists one or more files (dlls, exe's, html files etc.),& represents a group of resources,

Describe the three levels of data abstraction, Describe the three levels of...

Describe the three levels of data abstraction? The are three levels of abstraction: Physical level: The lowest level of abstraction explains how data are stored.  Logical

Creating dynamic web pages, As you have probably realized by now, Web pages...

As you have probably realized by now, Web pages are much more useful when they are dynamic. In Internet terminology, the word dynamic means several things. Primarily, it refers to

Difference between delegate and events, What is the difference between dele...

What is the difference between delegate and events? Actually events use delegates in the bottom. But they also add an extra layer on the delegates, hence forming the publisher

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd