Discussion on:
View:
Show:
None of the articles / forums I came across explained with example on security (Authentication) also.. And moreover you have listed all events..
Keep posting such articles..
Keep posting such articles..
If I want to add the global.asax, Does it need to recompile the project ? Or it is just okay if I put it in the release ?
Kamleshkumar Gujarathi
kamlesh.gujarathi@yahoo.com
Kamleshkumar Gujarathi
kamlesh.gujarathi@yahoo.com
I was dreaming to became Programmer and now i love programmers.
so i love u all programmers.
so i love u all programmers.
was very useful as i am Beginner. Thanks a lot
Hey you used response.write() method in application_error event handler.
but it throws an http exception because response is not available in global.asax file
but it throws an http exception because response is not available in global.asax file
The Global.asax file can contains the following events:
- Application_Init:
Fired when an application initializes or is first called. It's 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's fired only once during an application's lifetime.
- Application_BeginRequest:
Fired when an application request is received. It's 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 is finished executing an event handler.
- Applcation_PreSendRequestHeaders:
Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).
- Application_PreSendContent:
Fired before the ASP.NET page framework sends content to a requesting client (browser).
- Application_AcquireRequestState:
Fired when the ASP.NET page framework gets the current state (Session state) related to the current request.
- Application_ReleaseRequestState:
Fired when the ASP.NET page framework completes execution of all event handlers. This results in all state modules to save their current state data.
- Application_ResolveRequestCache:
Fired when the ASP.NET page framework completes an authorization request. It allows caching modules to serve the request from the cache, thus bypassing handler execution.
- Application_UpdateRequestCache:
Fired when the ASP.NET page framework completes handler execution to allow caching modules to store responses to be used to handle subsequent requests.
- Application_AuthenticateRequest:
Fired when the security module has established the current user's identity as valid. At this point, the user's credentials have been validated.
- Application_AuthorizeRequest:
Fired when the security module has verified that a user can access 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 Web site.
Last Updated ( Wednesday, 15 November 2006 )
- Application_Init:
Fired when an application initializes or is first called. It's 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's fired only once during an application's lifetime.
- Application_BeginRequest:
Fired when an application request is received. It's 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 is finished executing an event handler.
- Applcation_PreSendRequestHeaders:
Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).
- Application_PreSendContent:
Fired before the ASP.NET page framework sends content to a requesting client (browser).
- Application_AcquireRequestState:
Fired when the ASP.NET page framework gets the current state (Session state) related to the current request.
- Application_ReleaseRequestState:
Fired when the ASP.NET page framework completes execution of all event handlers. This results in all state modules to save their current state data.
- Application_ResolveRequestCache:
Fired when the ASP.NET page framework completes an authorization request. It allows caching modules to serve the request from the cache, thus bypassing handler execution.
- Application_UpdateRequestCache:
Fired when the ASP.NET page framework completes handler execution to allow caching modules to store responses to be used to handle subsequent requests.
- Application_AuthenticateRequest:
Fired when the security module has established the current user's identity as valid. At this point, the user's credentials have been validated.
- Application_AuthorizeRequest:
Fired when the security module has verified that a user can access 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 Web site.
Last Updated ( Wednesday, 15 November 2006 )
Is this still valid with vs 2010? Is it used in .NET 4.0?
Excellent post and wonderful blog, I really like this type of interesting articles keep it up.
Plaster Coving
Plaster Coving
- Keyboard Shortcuts:
- Prev
- Next
- Toggle









































