Mid From PDF ASP.NET Core ASP.NET Core

How routing works in MVC / Razor Pages

  • MVC Routing:
  • Uses attribute routing or conventional routing.

Example:

endpoints.MapControllerRoute(

name: "default",

pattern: "{controller=Home}/{action=Index}/{id?}");
  • Razor Pages Routing:
  • Based on folder structure.
  • URL /Products/Edit maps to

/Pages/Products/Edit.cshtml.

More from ASP.NET Core Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details