Home »
Code Examples »
ASP.Net Code Examples
ASP.Net - Can we map multiple URLs to the same action? Code Example
The code for Can we map multiple URLs to the same action?
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
Code by IncludeHelp,
on August 12, 2022 23:58