Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
ASP.NET

Routing in ASP.NET MVC

Configure conventional and attribute routes.

Routing in ASP.NET MVC — a practical guide to ASP.NET MVC routing with clear examples you can reuse in real projects.

ASP & ASP.NET Tutorial Series (92/247). Prefer one article? Read the complete ASP.NET tutorial.

Short description

Default {controller}/{action}/{id} covers many apps.

Route tip

routes.MapRoute(
  name: "Default",
  url: "{controller}/{action}/{id}",
  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });

Leave a reply

Your email address will not be published. Required fields are marked *