3 February 2014

Events in Gobal.asax File


Global.asax file contains the following events:

Application_Init

        Fired when an application initializes or is first called. It is invoked for all HttpApplication object instances.

Application_Disposed

        Fired just before an application is destroyed. This is the ideal location for cleaning up previously used resources.


Application_Error
       
        Fired when an unhandled exception is encountered within the application.


Application_Start

        Fired when the first instance of the HttpApplication class is created.It allows you to create objects that are accessible by all HttpApplication instances.


Application_End

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


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

Application_EndRequest

       The last event fired for an application request.

Application_PreRequestHandlerExecute

       Fired before the ASP.NET page framework begins executing an event handler like a page or Web service.


Application_PostRequestHandlerExecute
       
       Fired when the ASP.NET page framework has finished executing an event handler


                                                                                                                                            Next

No comments:

Post a Comment