I have an asp.net-mvc app with the following aspx pages served by my 'Users' controller: Index.aspx, User.aspx, UsersIntoActivity.aspx and UsersUsingLocation.aspx.
In my Global.ashx.cs I've got the following routes set up:
routes.MapRoute(
"UsersHome",
"Users",
new { controller = "Users", action = "Index" });
routes.MapRoute(
"Users",
"Users/{id}/{name}",
new { controller = "Users", action = "User", id = "", name = "" });
routes.MapRoute(
"UsersUsing",
"Users/Using/{locationId}/{name}",
new { controller = "Users", action = "UsersUsingLocation", locationId = "", name = "" });
routes.MapRoute(
"UsersInto",
"Users/Into/{activityId}/{name}",
new { controller = "Users", action = "UsersIntoActivity", activityId = "", name = "" });
The problem is that when I try to access UsersIntoActivity.aspx or UsersUsingLocation.aspx via the urls 'website/Users/Into/1/some-activity' or website/Users/Using/1/some-location the appropriate ActionResult method is being invoked, but the User method also gets invoked afterwards.