title: Global.asax magic functions
body: <p>When creating an ASP.NET Mvc project in Visual Studio, a <code>Global.asax</code> &amp; <code>Global.asax.cs</code> will be created. In this .cs file you will find the standard <code>Application_Start</code> method.</p>
  
  <p>My question is the following, how is this function called? because it is not a override. So my guess is that this method name is by convention. The same goes for the <code>Application_Error</code> method.</p>
  
  <p>I want to know where these methods are hooked. Because I write those methods (not override them) I couldn't find any documentation on them in MSDN. (I found <a href="http://msdn.microsoft.com/en-us/library/994a1482.aspx">this</a> page but it only tells you to hook to the <code>Error</code> event and shows a <code>Application_Error(object sender, EventArgs e)</code> but not how the Event and the method are linked.)</p>
  
  <pre><code>//Magicly called at startup
  protected void Application_Start() 
  {
      //Omitted
  }
  
  //Magicly linked with the Error event
  protected void Application_Error(object sender, EventArgs e)
  {
      //Omitted
  }
  </code></pre>