How to create Event handler in MVC

1.3k Views Asked by At

In my Global.asax generated file I couldn't find Application_PostAuthenticateRequest Event. How can I create it so that c# will Bind it automatically?

1

There are 1 best solutions below

0
On BEST ANSWER

There is a method for PostAuthenticateRequest in the MVC page life cycle. You just need to add it in your global.asax implementation as it is not a standart method that every application needs. You can refer to the following article and include the method on your own: https://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.framework.server.visualstudioservicesapplication.application_postauthenticaterequest(v=vs.120).aspx