Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Global.asax.cs @ 8910

Last change on this file since 8910 was 6317, checked in by jwolfing, 13 years ago

#1433 code formatted

File size: 884 bytes
RevLine 
[4985]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.Mvc;
6using System.Web.Routing;
7
8namespace HLWebServiceTestPlugin {
[6317]9  // Note: For instructions on enabling IIS6 or IIS7 classic mode,
10  // visit http://go.microsoft.com/?LinkId=9394801
[4985]11
[6317]12  public class MvcApplication : System.Web.HttpApplication {
13    public static void RegisterRoutes(RouteCollection routes) {
14      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
[4985]15
[6317]16      routes.MapRoute(
17          "Default", // Route name
18          "{controller}/{action}/{id}", // URL with parameters
19          new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
20      );
[4985]21
[6317]22    }
[4985]23
[6317]24    protected void Application_Start() {
25      AreaRegistration.RegisterAllAreas();
[4985]26
[6317]27      RegisterRoutes(RouteTable.Routes);
[4985]28    }
[6317]29  }
[4985]30}
Note: See TracBrowser for help on using the repository browser.