Is MapPageRoute used only on WebForms while MapRoute for MVC?
Or are these applicable on both WebForms and MVC?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MapPageRoutecan be used when mapping a route to a specific .aspx file.MapRouteis 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
MapPageRouteit states: