Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 7870 was 6317, checked in by jwolfing, 14 years ago

#1433 code formatted

File size: 884 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.Mvc;
6using System.Web.Routing;
7
8namespace HLWebServiceTestPlugin {
9  // Note: For instructions on enabling IIS6 or IIS7 classic mode,
10  // visit http://go.microsoft.com/?LinkId=9394801
11
12  public class MvcApplication : System.Web.HttpApplication {
13    public static void RegisterRoutes(RouteCollection routes) {
14      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15
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      );
21
22    }
23
24    protected void Application_Start() {
25      AreaRegistration.RegisterAllAreas();
26
27      RegisterRoutes(RouteTable.Routes);
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.