Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between MapRoute and MapPageRoute?

Is MapPageRoute used only on WebForms while MapRoute for MVC?

Or are these applicable on both WebForms and MVC?

thanks

like image 617
allan Avatar asked Mar 30 '12 07:03

allan


Video Answer


1 Answers

MapPageRoute can be used when mapping a route to a specific .aspx file. MapRoute is used to map a route to a controller action.

You can mix both WebForms and MVC in one application and then you would use those two mapping functions to create your routing.

If you look at the MSDN documentation for MapPageRoute it states:

Provides a way to define routes for Web Forms applications.

like image 194
Wouter de Kort Avatar answered Oct 18 '22 12:10

Wouter de Kort