Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am new to asp.net. Is there any single event that is raised by asp.net for each and every request that comes to the server?
Thanks in advance.
Posted
Comments
Uday P.Singh 19-Sep-11 6:40am    
What do you want to achieve? Page_Load event is raised by asp.net for each and every request.

 
Share this answer
 
v2
Comments
Pallab_GT 19-Sep-11 6:48am    
Thanks for your reply.
In this scenario, I have to trap individual events for individual pages.
My question is...is there any single event that happens commonly for each page request in the server?
Prerak Patel 19-Sep-11 6:52am    
Then try application events. Updated the answer.
Uday P.Singh 19-Sep-11 8:25am    
my 5!
Prerak Patel 19-Sep-11 23:22pm    
Thanks Uday
Pallab_GT 20-Sep-11 1:47am    
Thank you very much Prerak for helping me out
If you want to track all the requests coming to your Web Server, Then HttpModule can help you.

Have a look at below link. This will give you details around HttpModule and HttpHandler in Asp.Net.

http://www.15seconds.com/issue/020417.htm
 
Share this answer
 
Hi,

Yeah we can handle each and every request in server by using handlers.

Here 'm provding link for that check this link to know how we handle each and every request in server by single method.

http://www.codeproject.com/KB/aspnet/Httphandlers_ASPNET.aspx

http://www.codeproject.com/KB/aspnet/HttpModuleandHttpHandle.aspx


I hope these links can help you

All the best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900