title: Umbraco 4.10 + Extending Global.ascx
body: <p>Does anyone knows how to extend Global.ascx in umbraco 4.10 onwards? I want to register custom routes to my application.</p>
  
  <p>I have added code behind to the global.ascx and inherited as follows:</p>
  
  <pre><code> public class Global : Umbraco.Web.UmbracoApplication
  {
  
      protected override void OnApplicationStarting(object sender, EventArgs e)
      {
          base.OnApplicationStarting(sender, e);
  
      }
  
      //protected void Application_Start(object sender, EventArgs e)
      //{
  
      //}.....
  </code></pre>
  
  <p>Please correct if I understood this wrong and you can not extend global.ascx file. </p>
  
  <p>Edit: I know you can do this with config but I think it would be much better to do in global.ascx to do complex routing in future.</p>
  
  <p>Many Thanks.</p>