MVC Routing:-

Routing helps you to define a URL structure and map the URL with the controller.

For instance let’s say we want that when a user types “http://localhost/View/ViewCustomer/”, it goes to the “Customer” Controller and invokes theDisplayCustomeraction. This is defined by adding an entry in to theroutescollection using themaproutefunction. Below is the underlined code which shows how the URL structure and mapping with controller and action is defined.

Example :-

results matching ""

    No results matching ""