Global events with MVC in K11

Lance Keay asked on October 31, 2018 12:02

I've tried to follow the docs: for setting up a global event handler, but it's not working for our MVC site. The OnInit functions don't seem to ever trigger in MVC.

Correct Answer

Brenden Kehren answered on October 31, 2018 12:43

Check our Brian McKeiver's post here. Simply stated, use the Global.asax.cs file in the Application_Start method to add your events.

1 votesVote for this answer Unmark Correct answer

Recent Answers

Lance Keay answered on October 31, 2018 13:04 (last edited on October 31, 2018 13:06)

Thanks @Brenden - exactly what I was looking for.

The short answer is to put the Global Event handler inside the Application_Start method of the Global.asax.cs.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.