Articles : Page 1 of 1

  • Named Routes To The Rescue

    Named Routes To The Rescue

    Nov 10
    22

    The beginning of wisdom is to call things by their right names – Chinese Proverb Routing in ASP.NET doesn’t require that you name your routes, and in many cases it works out great. When you want to generate an URL, you grab this bag of values you have lying around, hand it to the routing engine, and let it sort it all out. For example, suppose an application has the following two routes define routes.MapRoute( name: "Test", url: "code/p/{action}/{id}", defaults: new { controller = "Se...



  • 1