title: When do I need to register a route in RouteConfig.cs ASP.Net MVC?
body: <p>When using a .NET MVC to build a website, when do I need to include a new route's info in <code>RouteConfig.cs?</code></p>
  <hr />
  <p>I have seen there is one default route pre-configured and registered in the <code>RouteConfig.cs</code> file like this:</p>
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute(&quot;{resource}.axd/{*pathInfo}&quot;);
  
  
          routes.MapRoute(
              name: &quot;Default&quot;,
              url: &quot;{controller}/{action}/{id}&quot;,
              defaults: new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  <p>When I created a new controller I saw that, without writing any route info in <code>RouteConfig.cs</code>, the corresponding view was rendered in my browser.</p>
  <p>Even after creating a few more controllers, like <code>testcontroller</code>, that I accessed from test views, still without writing anything regarding a route for <code>testcontroller</code>, their views rendered properly.</p>
  <p>As these views all render without editing anything in <code>RouteConfig.cs</code>, can you give me a few examples when I <strong>do</strong> need to write route info in <code>RouteConfig.cs</code>?</p>