In Application_BegineRequest, how can I know when the request is for a MVC controller or not?

Viewed 62

In the Application_BeginRequest event in the global.asax, I want to fire some logic ONLY if the request is for a controller action method.

Currently things are getting called when a request is for a resource like a .js file etc.

3 Answers
Related