Created
July 18, 2011 21:04
-
-
Save mikekelly/1090649 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MvcApplication : System.Web.HttpApplication | |
| { | |
| public static void RegisterRoutes(RouteCollection routes) | |
| { | |
| routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
| routes.MapRoute( | |
| "Default", // Route name | |
| "{controller}/{action}/{id}", // URL with parameters | |
| new { controller = "Home", action = "Index", id = "" } // Parameter defaults | |
| ); | |
| } | |
| protected void Application_Start() | |
| { | |
| RegisterRoutes(RouteTable.Routes); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment