Is MapPageRoute used only on WebForms while MapRoute for MVC?
Or are these applicable on both WebForms and MVC?
thanks
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With