Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
we know OnActionExecuting Method which is Called before the action method is invoked.

I just want to know can we implement same thing for ASP.net web application .net framework 4.5 ?

I mean ,is there any before event fire technique ?where I do some thing before every event fire.
Posted

1 solution

Kuntal - I would say, the best consideration would be creating a custom HTTP Module as below.

http://stackoverflow.com/questions/16779970/onactionexecuting-equivalent-in-standard-asp-net[^]

Also please note that since you are using ASP.NET Pages, all page life cycles events will be fired in each post backs.
 
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