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

What are the major built-in objects in ASP.NET?

672


How you can manage the state of application at the server side in ASP.NET?

667


What is user control in asp.net?

596


Is a dll file an executable?

633


How do you use viewstate?

641






Diff between web user control and web custom control?

602


Explain the role of global.asax?

627


How long the items in ViewState exists?

1055


What are the advantages and disadvantages of Using Cookies?

591


What is the equivalent of date() and time() in asp.net?

600


What is difference between web config and global asax?

519


What is server transfer?

582


Differentiate between client-side and server-side validations in web pages.

650


What is the usie of activex control in .net?

643


How can you apply a theme to your asp.net application?

619