What event handlers can I include in Global.asax ?

Answer Posted / kumar saurabh

Application_Start,Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed, Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,
Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache, Session_Start,Session_End
You can optionally include "On" in any of method names. For example, you can name a BeginRequest event handler.Application_BeginRequest or Application_OnBeginRequest.You can also include event handlers in Global.asax for events fired by custom HTTP modules.Note that not all of the event handlers make sense for Web Services (they're designed for ASP.NET applications in general, whereas .NET XML Web Services are specialized instances of an ASP.NET app). For example, the Application_AuthenticateRequest and Application_AuthorizeRequest events are designed to be used with ASP.NET Forms authentication.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we make activex dll also ti execute in some process as that of client ? How can we do?

4252


What websites use asp.net?

524


What is the default timeout for a cookie?

560


How to rename a table using sql queries?

572


Can we override the enablepartialrendering property of the scriptmanager class?

644






What are the versions of garbage collection?

1460


Web API uses which library for JSON serialization?

569


How can we create pie chart in asp.net?

589


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1674


What are the features of asp net?

515


What does the .webpart file do?

589


Explain the concept of MVC Scaffolding?

595


What is the difference between viewstate and hidden field in asp.net?

488


Why will you usually create an aspnet user account in the database for an asp.net web application?

539


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1410