route.MapPageRoute to a page with an extension

7331

New Member
In the global.asax of my website project (not MVC, not Web Application) MapPageRoute won't let me map to a page with an extension.For example:\[code\]routes.MapPageRoute("GetMobilePassForAttendee", "Pass/Attendee/{attendeeId}", "~/GetMobilePass.aspx");\[/code\]works as expected, but \[code\]routes.MapPageRoute("GetMobilePassForAttendee", "Pass/Attendee/{attendeeId}/pass.pkpass", "~/GetMobilePass.aspx");\[/code\]returns a 404.Anyone know why?Perhaps I should be using URL rewriting, but all the material I've read has suggested I use routing instead.
 
Back
Top