RSS

Blog posts tagged with 'register routes'

Overview of registering new routes in nopCommerce

Written by Lavish Kumar

written by Lavish Kumar

ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user's action and therefore are more easily understood by users.The ASP.NET MVC framework and ASP.NET Dynamic Data extend routing to provide features that are used only in MVC applications and in Dynamic Data applications. You can find more information here.

You can also look into this example that explains the ASP.NET routing. The ASP.NET Routing module is responsible for mapping incoming browser requests to particular MVC controller actions.

nopCommerce follows the IRouteProvider interface which is used for route registration during application start-up. All core routes are registered in the RouteProvider class located in the Nop.Web project.