Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which event fires every time in ASP.NET

I know that Global.asax has events which fire for an application at a specific time. But I need an event which fires every time the application receives a request.

like image 571
jams Avatar asked Dec 22 '22 14:12

jams


2 Answers

In Global.asax event Application_BeginRequest fire every time when a page request made.

like image 155
Pankaj Agarwal Avatar answered Dec 24 '22 04:12

Pankaj Agarwal


I think what you are looking for is the Application_BeginRequest event:

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.

For more event information, have a look on this article Working with the ASP.NET Global.asax file

like image 43
Muhammad Akhtar Avatar answered Dec 24 '22 03:12

Muhammad Akhtar