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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.