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
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

Deat Sir/Madam, I need a small software .NET2.0 in C# That search for files by - name - extension - part of the name (contains) - file created before a date provided This search

Social Media project Project Description: It's a Windows Phone application which requires the subsequent capabilities: -Live Video Streaming -Social Networking capabili

Develop a Earnings Calculator for my Paid to Click Website Project Description: I want a calculator which will show my members how much they could earn, with value per click,

What are Daemon threads? Daemon thread's run in the background and stop automatically when nothing is running program. The Example of a Daemon thread is the "Garbage collector"

What are benefits and limitations of using Hidden frames 1)    The benefits of using hidden frames are as follows: 2)    More than one data field can cache. 3)    The abi

Need Data Stream from Laptop to Phone Project Description: I have a notepad file that is automatically generated in a set file name and format by acquisition software and wri

What are advantages of SQL 2000 over SQl 7.0? 1)User-Defined Functions: The User-Defined Functions (UDFs) -- one or moreTransact-SQL statements may be used to encapsulate the

What is the difference between proc. sent BY VAL and By Ref? By val: changes will not be reflected back to the variable. By ref: changes will be reflected back to that varia

Briefly explain the characteristics of value-type variables that are supported in the C# programming language. The variables that are based on value types directly contain valu